
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/yahoo/yahoo-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);if(/ Mobile\//.test(B)){C.mobile="Apple";}else{A=B.match(/NokiaN[^\/]*/);if(A){C.mobile=A[0];}}A=B.match(/AdobeAIR\/([^\s]*)/);if(A){C.air=A[0];}}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);A=B.match(/Opera Mini[^;]*/);if(A){C.mobile=A[0];}}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1]);}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1]);}}}}}A=B.match(/Caja\/([^\s]*)/);if(A&&A[1]){C.caja=parseFloat(A[1]);}return C;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,F="[object Array]",C="[object Function]",A=Object.prototype,E=["toString","valueOf"],D={isArray:function(G){return A.toString.apply(G)===F;},isBoolean:function(G){return typeof G==="boolean";},isFunction:function(G){return A.toString.apply(G)===C;},isNull:function(G){return G===null;},isNumber:function(G){return typeof G==="number"&&isFinite(G);},isObject:function(G){return(G&&(typeof G==="object"||B.isFunction(G)))||false;},isString:function(G){return typeof G==="string";},isUndefined:function(G){return typeof G==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(I,H){var G,K,J;for(G=0;G<E.length;G=G+1){K=E[G];J=H[K];if(B.isFunction(J)&&J!=A[K]){I[K]=J;}}}:function(){},extend:function(J,K,I){if(!K||!J){throw new Error("extend failed, please check that "+"all dependencies are included.");}var H=function(){},G;H.prototype=K.prototype;J.prototype=new H();J.prototype.constructor=J;J.superclass=K.prototype;if(K.prototype.constructor==A.constructor){K.prototype.constructor=K;}if(I){for(G in I){if(B.hasOwnProperty(I,G)){J.prototype[G]=I[G];}}B._IEEnumFix(J.prototype,I);}},augmentObject:function(K,J){if(!J||!K){throw new Error("Absorb failed, verify dependencies.");}var G=arguments,I,L,H=G[2];if(H&&H!==true){for(I=2;I<G.length;I=I+1){K[G[I]]=J[G[I]];}}else{for(L in J){if(H||!(L in K)){K[L]=J[L];}}B._IEEnumFix(K,J);}},augmentProto:function(J,I){if(!I||!J){throw new Error("Augment failed, verify dependencies.");}var G=[J.prototype,I.prototype],H;for(H=2;H<arguments.length;H=H+1){G.push(arguments[H]);}B.augmentObject.apply(this,G);},dump:function(G,L){var I,K,N=[],O="{...}",H="f(){...}",M=", ",J=" => ";if(!B.isObject(G)){return G+"";}else{if(G instanceof Date||("nodeType" in G&&"tagName" in G)){return G;}else{if(B.isFunction(G)){return H;}}}L=(B.isNumber(L))?L:3;if(B.isArray(G)){N.push("[");for(I=0,K=G.length;I<K;I=I+1){if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}if(N.length>1){N.pop();}N.push("]");}else{N.push("{");for(I in G){if(B.hasOwnProperty(G,I)){N.push(I+J);if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}}if(N.length>1){N.pop();}N.push("}");}return N.join("");},substitute:function(V,H,O){var L,K,J,R,S,U,Q=[],I,M="dump",P=" ",G="{",T="}",N;for(;;){L=V.lastIndexOf(G);if(L<0){break;}K=V.indexOf(T,L);if(L+1>=K){break;}I=V.substring(L+1,K);R=I;U=null;J=R.indexOf(P);if(J>-1){U=R.substring(J+1);R=R.substring(0,J);}S=H[R];if(O){S=O(R,S,U);}if(B.isObject(S)){if(B.isArray(S)){S=B.dump(S,parseInt(U,10));}else{U=U||"";N=U.indexOf(M);if(N>-1){U=U.substring(4);}if(S.toString===A.toString||N>-1){S=B.dump(S,parseInt(U,10));}else{S=S.toString();}}}else{if(!B.isString(S)&&!B.isNumber(S)){S="~-"+Q.length+"-~";Q[Q.length]=I;}}V=V.substring(0,L)+S+V.substring(K+1);}for(L=Q.length-1;L>=0;L=L-1){V=V.replace(new RegExp("~-"+L+"-~"),"{"+Q[L]+"}","g");}return V;},trim:function(G){try{return G.replace(/^\s+|\s+$/g,"");}catch(H){return G;}},merge:function(){var J={},H=arguments,G=H.length,I;for(I=0;I<G;I=I+1){B.augmentObject(J,H[I],true);}return J;},later:function(N,H,O,J,K){N=N||0;H=H||{};var I=O,M=J,L,G;if(B.isString(O)){I=H[O];}if(!I){throw new TypeError("method undefined");}if(!B.isArray(M)){M=[J];}L=function(){I.apply(H,M);};G=(K)?setInterval(L,N):setTimeout(L,N);return{interval:K,cancel:function(){if(this.interval){clearInterval(G);}else{clearTimeout(G);}}};},isValue:function(G){return(B.isObject(G)||B.isString(G)||B.isNumber(G)||B.isBoolean(G));}};B.hasOwnProperty=(A.hasOwnProperty)?function(G,H){return G&&G.hasOwnProperty(H);}:function(G,H){return !B.isUndefined(G[H])&&G.constructor.prototype[H]!==G[H];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/dom/dom-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},get:function(y){var AA,Y,z,x,G;if(y){if(y[l]||y.item){return y;}if(typeof y==="string"){AA=y;y=K.getElementById(y);if(y&&y.id===AA){return y;}else{if(y&&K.all){y=null;Y=K.all[AA];for(x=0,G=Y.length;x<G;++x){if(Y[x].id===AA){return Y[x];}}}}return y;}if(y.DOM_EVENTS){y=y.get("element");}if("length" in y){z=[];for(x=0,G=y.length;x<G;++x){z[z.length]=E.Dom.get(y[x]);}return z;}return y;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];G=S(AF[v],q);x=S(AF[v],R);if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC==c)){if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AB=L.trim(AB);AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom.getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom.getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom.getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});
},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom.getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;Y.setAttribute(G,x);},getAttribute:function(Y,G){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;return Y.getAttribute(G);},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);
}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/event/event-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.util.CustomEvent=function(D,C,B,A){this.type=D;this.scope=C||window;this.silent=B;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(A,B,C){if(!A){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(A,B,C);}this.subscribers.push(new YAHOO.util.Subscriber(A,B,C));},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var K=[],E=this.subscribers.length;if(!E&&this.silent){return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent){}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D){var M=C[D];if(!M){J=true;}else{if(!this.silent){}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(I.length>0){B=I[0];}try{G=M.fn.call(L,B,M.obj);}catch(F){this.lastError=F;if(A){throw F;}}}else{try{G=M.fn.call(L,this.type,I,M.obj);}catch(H){this.lastError=H;if(A){throw H;}}}if(false===G){if(!this.silent){}break;}}}return(G!==false);},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var K=YAHOO.env.ua.ie?"focusin":"focus";var L=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var M=this;var N=function(){M._tryPreloadAttach();};this._interval=setInterval(N,this.POLL_INTERVAL);}},onAvailable:function(S,O,Q,R,P){var M=(YAHOO.lang.isString(S))?[S]:S;for(var N=0;N<M.length;N=N+1){F.push({id:M[N],fn:O,obj:Q,overrideContext:R,checkReady:P});}C=this.POLL_RETRYS;this.startInterval();},onContentReady:function(P,M,N,O){this.onAvailable(P,M,N,O,true);},onDOMReady:function(M,N,O){if(this.DOMReady){setTimeout(function(){var P=window;if(O){if(O===true){P=N;}else{P=O;}}M.call(P,"DOMReady",[],N);},0);}else{this.DOMReadyEvent.subscribe(M,N,O);}},_addListener:function(O,M,Y,S,W,b){if(!Y||!Y.call){return false;}if(this._isValidCollection(O)){var Z=true;for(var T=0,V=O.length;T<V;++T){Z=this.on(O[T],M,Y,S,W)&&Z;}return Z;}else{if(YAHOO.lang.isString(O)){var R=this.getEl(O);if(R){O=R;}else{this.onAvailable(O,function(){YAHOO.util.Event.on(O,M,Y,S,W);});return true;}}}if(!O){return false;}if("unload"==M&&S!==this){J[J.length]=[O,M,Y,S,W];return true;}var N=O;if(W){if(W===true){N=S;}else{N=W;}}var P=function(c){return Y.call(N,YAHOO.util.Event.getEvent(c,O),S);};var a=[O,M,Y,P,N,S,W];var U=I.length;I[U]=a;if(this.useLegacyEvent(O,M)){var Q=this.getLegacyIndex(O,M);if(Q==-1||O!=G[Q][0]){Q=G.length;B[O.id+M]=Q;G[Q]=[O,M,O["on"+M]];E[Q]=[];O["on"+M]=function(c){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(c),Q);};}E[Q].push(a);}else{try{this._simpleAdd(O,M,P,b);}catch(X){this.lastError=X;this.removeListener(O,M,Y);return false;}}return true;},addListener:function(N,Q,M,O,P){return this._addListener(N,Q,M,O,P,false);},addFocusListener:function(N,M,O,P){return this._addListener(N,K,M,O,P,true);},removeFocusListener:function(N,M){return this.removeListener(N,K,M);},addBlurListener:function(N,M,O,P){return this._addListener(N,L,M,O,P,true);},removeBlurListener:function(N,M){return this.removeListener(N,L,M);},fireLegacyEvent:function(R,P){var T=true,M,V,U,N,S;V=E[P].slice();for(var O=0,Q=V.length;O<Q;++O){U=V[O];if(U&&U[this.WFN]){N=U[this.ADJ_SCOPE];S=U[this.WFN].call(N,R);T=(T&&S);}}M=G[P];if(M&&M[2]){M[2](R);}return T;},getLegacyIndex:function(N,O){var M=this.generateId(N)+O;if(typeof B[M]=="undefined"){return -1;}else{return B[M];}},useLegacyEvent:function(M,N){return(this.webkit&&this.webkit<419&&("click"==N||"dblclick"==N));},removeListener:function(N,M,V){var Q,T,X;if(typeof N=="string"){N=this.getEl(N);}else{if(this._isValidCollection(N)){var W=true;for(Q=N.length-1;Q>-1;Q--){W=(this.removeListener(N[Q],M,V)&&W);}return W;}}if(!V||!V.call){return this.purgeElement(N,false,M);}if("unload"==M){for(Q=J.length-1;Q>-1;Q--){X=J[Q];if(X&&X[0]==N&&X[1]==M&&X[2]==V){J.splice(Q,1);return true;}}return false;}var R=null;var S=arguments[3];if("undefined"===typeof S){S=this._getCacheIndex(N,M,V);}if(S>=0){R=I[S];}if(!N||!R){return false;}if(this.useLegacyEvent(N,M)){var P=this.getLegacyIndex(N,M);var O=E[P];if(O){for(Q=0,T=O.length;Q<T;++Q){X=O[Q];if(X&&X[this.EL]==N&&X[this.TYPE]==M&&X[this.FN]==V){O.splice(Q,1);break;}}}}else{try{this._simpleRemove(N,M,R[this.WFN],false);}catch(U){this.lastError=U;return false;}}delete I[S][this.WFN];delete I[S][this.FN];
I.splice(S,1);return true;},getTarget:function(O,N){var M=O.target||O.srcElement;return this.resolveTextNode(M);},resolveTextNode:function(N){try{if(N&&3==N.nodeType){return N.parentNode;}}catch(M){}return N;},getPageX:function(N){var M=N.pageX;if(!M&&0!==M){M=N.clientX||0;if(this.isIE){M+=this._getScrollLeft();}}return M;},getPageY:function(M){var N=M.pageY;if(!N&&0!==N){N=M.clientY||0;if(this.isIE){N+=this._getScrollTop();}}return N;},getXY:function(M){return[this.getPageX(M),this.getPageY(M)];},getRelatedTarget:function(N){var M=N.relatedTarget;if(!M){if(N.type=="mouseout"){M=N.toElement;}else{if(N.type=="mouseover"){M=N.fromElement;}}}return this.resolveTextNode(M);},getTime:function(O){if(!O.time){var N=new Date().getTime();try{O.time=N;}catch(M){this.lastError=M;return N;}}return O.time;},stopEvent:function(M){this.stopPropagation(M);this.preventDefault(M);},stopPropagation:function(M){if(M.stopPropagation){M.stopPropagation();}else{M.cancelBubble=true;}},preventDefault:function(M){if(M.preventDefault){M.preventDefault();}else{M.returnValue=false;}},getEvent:function(O,M){var N=O||window.event;if(!N){var P=this.getEvent.caller;while(P){N=P.arguments[0];if(N&&Event==N.constructor){break;}P=P.caller;}}return N;},getCharCode:function(N){var M=N.keyCode||N.charCode||0;if(YAHOO.env.ua.webkit&&(M in D)){M=D[M];}return M;},_getCacheIndex:function(Q,R,P){for(var O=0,N=I.length;O<N;O=O+1){var M=I[O];if(M&&M[this.FN]==P&&M[this.EL]==Q&&M[this.TYPE]==R){return O;}}return -1;},generateId:function(M){var N=M.id;if(!N){N="yuievtautoid-"+A;++A;M.id=N;}return N;},_isValidCollection:function(N){try{return(N&&typeof N!=="string"&&N.length&&!N.tagName&&!N.alert&&typeof N[0]!=="undefined");}catch(M){return false;}},elCache:{},getEl:function(M){return(typeof M==="string")?document.getElementById(M):M;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(N){if(!H){H=true;var M=YAHOO.util.Event;M._ready();M._tryPreloadAttach();}},_ready:function(N){var M=YAHOO.util.Event;if(!M.DOMReady){M.DOMReady=true;M.DOMReadyEvent.fire();M._simpleRemove(document,"DOMContentLoaded",M._ready);}},_tryPreloadAttach:function(){if(F.length===0){C=0;if(this._interval){clearInterval(this._interval);this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var S=!H;if(!S){S=(C>0&&F.length>0);}var R=[];var T=function(V,W){var U=V;if(W.overrideContext){if(W.overrideContext===true){U=W.obj;}else{U=W.overrideContext;}}W.fn.call(U,W.obj);};var N,M,Q,P,O=[];for(N=0,M=F.length;N<M;N=N+1){Q=F[N];if(Q){P=this.getEl(Q.id);if(P){if(Q.checkReady){if(H||P.nextSibling||!S){O.push(Q);F[N]=null;}}else{T(P,Q);F[N]=null;}}else{R.push(Q);}}}for(N=0,M=O.length;N<M;N=N+1){Q=O[N];T(this.getEl(Q.id),Q);}C--;if(S){for(N=F.length-1;N>-1;N--){Q=F[N];if(!Q||!Q.id){F.splice(N,1);}}this.startInterval();}else{if(this._interval){clearInterval(this._interval);this._interval=null;}}this.locked=false;},purgeElement:function(Q,R,T){var O=(YAHOO.lang.isString(Q))?this.getEl(Q):Q;var S=this.getListeners(O,T),P,M;if(S){for(P=S.length-1;P>-1;P--){var N=S[P];this.removeListener(O,N.type,N.fn);}}if(R&&O&&O.childNodes){for(P=0,M=O.childNodes.length;P<M;++P){this.purgeElement(O.childNodes[P],R,T);}}},getListeners:function(O,M){var R=[],N;if(!M){N=[I,J];}else{if(M==="unload"){N=[J];}else{N=[I];}}var T=(YAHOO.lang.isString(O))?this.getEl(O):O;for(var Q=0;Q<N.length;Q=Q+1){var V=N[Q];if(V){for(var S=0,U=V.length;S<U;++S){var P=V[S];if(P&&P[this.EL]===T&&(!M||M===P[this.TYPE])){R.push({type:P[this.TYPE],fn:P[this.FN],obj:P[this.OBJ],adjust:P[this.OVERRIDE],scope:P[this.ADJ_SCOPE],index:S});}}}}return(R.length)?R:null;},_unload:function(T){var N=YAHOO.util.Event,Q,P,O,S,R,U=J.slice(),M;for(Q=0,S=J.length;Q<S;++Q){O=U[Q];if(O){M=window;if(O[N.ADJ_SCOPE]){if(O[N.ADJ_SCOPE]===true){M=O[N.UNLOAD_OBJ];}else{M=O[N.ADJ_SCOPE];}}O[N.FN].call(M,N.getEvent(T,O[N.EL]),O[N.UNLOAD_OBJ]);U[Q]=null;}}O=null;M=null;J=null;if(I){for(P=I.length-1;P>-1;P--){O=I[P];if(O){N.removeListener(O[N.EL],O[N.TYPE],O[N.FN],P);}}O=null;}G=null;N._simpleRemove(window,"unload",N._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var M=document.documentElement,N=document.body;if(M&&(M.scrollTop||M.scrollLeft)){return[M.scrollTop,M.scrollLeft];}else{if(N){return[N.scrollTop,N.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(O,P,N,M){O.addEventListener(P,N,(M));};}else{if(window.attachEvent){return function(O,P,N,M){O.attachEvent("on"+P,N);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(O,P,N,M){O.removeEventListener(P,N,(M));};}else{if(window.detachEvent){return function(N,O,M){N.detachEvent("on"+O,M);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);
}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].overrideContext);}}}return I[G];},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null;}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F]);}return G.fire.apply(G,B);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/cookie/cookie-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(B,D,C,A){var F=YAHOO.lang;var E=encodeURIComponent(B)+"="+(C?encodeURIComponent(D):D);if(F.isObject(A)){if(A.expires instanceof Date){E+="; expires="+A.expires.toGMTString();}if(F.isString(A.path)&&A.path!=""){E+="; path="+A.path;}if(F.isString(A.domain)&&A.domain!=""){E+="; domain="+A.domain;}if(A.secure===true){E+="; secure";}}return E;},_createCookieHashString:function(B){var D=YAHOO.lang;if(!D.isObject(B)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");}var C=new Array();for(var A in B){if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A])){C.push(encodeURIComponent(A)+"="+encodeURIComponent(String(B[A])));}}return C.join("&");},_parseCookieHash:function(E){var D=E.split("&"),F=null,C=new Object();if(E.length>0){for(var B=0,A=D.length;B<A;B++){F=D[B].split("=");C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}}return C;},_parseCookieString:function(J,A){var K=new Object();if(YAHOO.lang.isString(J)&&J.length>0){var B=(A===false?function(L){return L;}:decodeURIComponent);if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(J)){var H=J.split(/;\s/g),I=null,C=null,E=null;for(var D=0,F=H.length;D<F;D++){E=H[D].match(/([^=]+)=/i);if(E instanceof Array){try{I=decodeURIComponent(E[1]);C=B(H[D].substring(E[1].length+1));}catch(G){}}else{I=decodeURIComponent(H[D]);C=I;}K[I]=C;}}}return K;},get:function(A,B){var D=YAHOO.lang;var C=this._parseCookieString(document.cookie);if(!D.isString(A)||A===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");}if(D.isUndefined(C[A])){return null;}if(!D.isFunction(B)){return C[A];}else{return B(C[A]);}},getSub:function(A,C,B){var E=YAHOO.lang;var D=this.getSubs(A);if(D!==null){if(!E.isString(C)||C===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E.isUndefined(D[C])){return null;}if(!E.isFunction(B)){return D[C];}else{return B(D[C]);}}else{return null;}},getSubs:function(A){if(!YAHOO.lang.isString(A)||A===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");}var B=this._parseCookieString(document.cookie,false);if(YAHOO.lang.isString(B[A])){return this._parseCookieHash(B[A]);}return null;},remove:function(B,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");}A=A||{};A.expires=new Date(0);return this.set(B,"",A);},removeSub:function(B,D,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!YAHOO.lang.isString(D)||D===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var C=this.getSubs(B);if(YAHOO.lang.isObject(C)&&YAHOO.lang.hasOwnProperty(C,D)){delete C[D];return this.setSubs(B,C,A);}else{return"";}},set:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.set(): Cookie name must be a string.");}if(E.isUndefined(C)){throw new TypeError("Cookie.set(): Value cannot be undefined.");}var D=this._createCookieString(B,C,true,A);document.cookie=D;return D;},setSub:function(B,D,C,A){var F=YAHOO.lang;if(!F.isString(B)||B===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!F.isString(D)||D===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(F.isUndefined(C)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");}var E=this.getSubs(B);if(!F.isObject(E)){E=new Object();}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");}if(!E.isObject(C)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/history/history-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.util.History=(function(){var c=null;var k=null;var f=false;var d=[];var b=[];function i(){var m,l;l=top.location.href;m=l.indexOf("#");return m>=0?l.substr(m+1):null}function a(){var m,n,o=[],l=[];for(m in d){if(YAHOO.lang.hasOwnProperty(d,m)){n=d[m];o.push(m+"="+n.initialState);l.push(m+"="+n.currentState)}}k.value=o.join("&")+"|"+l.join("&");if(YAHOO.env.ua.webkit){k.value+="|"+b.join(",")}}function h(l){var q,r,m,o,p,t,s,n;if(!l){for(m in d){if(YAHOO.lang.hasOwnProperty(d,m)){o=d[m];o.currentState=o.initialState;o.onStateChange(unescape(o.currentState))}}return}p=[];t=l.split("&");for(q=0,r=t.length;q<r;q++){s=t[q].split("=");if(s.length===2){m=s[0];n=s[1];p[m]=n}}for(m in d){if(YAHOO.lang.hasOwnProperty(d,m)){o=d[m];n=p[m];if(!n||o.currentState!==n){o.currentState=n||o.initialState;o.onStateChange(unescape(o.currentState))}}}}function j(p){var l,o,m;m=document.domain;l='<html><head><script>document.domain="'+m+'"<\/script></head><body><div id="state">'+p+"</div></body></html>";try{o=c.contentWindow.document;o.open();o.write(l);o.close();return true}catch(n){return false}}function g(){var o,l,n,m;if(!c.contentWindow||!c.contentWindow.document){setTimeout(g,10);return}o=c.contentWindow.document;l=o.getElementById("state");n=l?l.innerText:null;m=i();setInterval(function(){var u,q,r,s,t,p;o=c.contentWindow.document;l=o.getElementById("state");u=l?l.innerText:null;t=i();if(u!==n){n=u;h(n);if(!n){q=[];for(r in d){if(YAHOO.lang.hasOwnProperty(d,r)){s=d[r];q.push(r+"="+s.initialState)}}t=q.join("&")}else{t=n}top.location.hash=t;m=t;a()}else{if(t!==m){m=t;j(t)}}},50);f=true;YAHOO.util.History.onLoadEvent.fire()}function e(){var s,u,q,w,m,o,v,p,t,n,l,r;q=k.value.split("|");if(q.length>1){v=q[0].split("&");for(s=0,u=v.length;s<u;s++){w=v[s].split("=");if(w.length===2){m=w[0];p=w[1];o=d[m];if(o){o.initialState=p}}}t=q[1].split("&");for(s=0,u=t.length;s<u;s++){w=t[s].split("=");if(w.length>=2){m=w[0];n=w[1];o=d[m];if(o){o.currentState=n}}}}if(q.length>2){b=q[2].split(",")}if(YAHOO.env.ua.ie){if(typeof document.documentMode==="undefined"||document.documentMode<8){g()}else{YAHOO.util.Event.on(top,"hashchange",function(){var x=i();h(x);a()});f=true;YAHOO.util.History.onLoadEvent.fire()}}else{l=history.length;r=i();setInterval(function(){var z,x,y;x=i();y=history.length;if(x!==r){r=x;l=y;h(r);a()}else{if(y!==l&&YAHOO.env.ua.webkit){r=x;l=y;z=b[l-1];h(z);a()}}},50);f=true;YAHOO.util.History.onLoadEvent.fire()}}return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),onReady:function(m,n,l){if(f){setTimeout(function(){var o=window;if(l){if(l===true){o=n}else{o=l}}m.call(o,"onLoad",[],n)},0)}else{YAHOO.util.History.onLoadEvent.subscribe(m,n,l)}},register:function(o,l,q,r,n){var p,m;if(typeof o!=="string"||YAHOO.lang.trim(o)===""||typeof l!=="string"||typeof q!=="function"){throw new Error("Missing or invalid argument")}if(d[o]){return}if(f){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize")}o=escape(o);l=escape(l);p=null;if(n===true){p=r}else{p=n}m=function(s){return q.call(p,s,r)};d[o]={name:o,initialState:l,currentState:l,onStateChange:m}},initialize:function(l,m){if(f){return}if(YAHOO.env.ua.opera&&typeof history.navigationMode!=="undefined"){history.navigationMode="compatible"}if(typeof l==="string"){l=document.getElementById(l)}if(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text")){throw new Error("Missing or invalid argument")}k=l;if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){if(typeof m==="string"){m=document.getElementById(m)}if(!m||m.tagName.toUpperCase()!=="IFRAME"){throw new Error("Missing or invalid argument")}c=m}YAHOO.util.Event.onDOMReady(e)},navigate:function(m,n){var l;if(typeof m!=="string"||typeof n!=="string"){throw new Error("Missing or invalid argument")}l={};l[m]=n;return YAHOO.util.History.multiNavigate(l)},multiNavigate:function(m){var l,n,p,o,q;if(typeof m!=="object"){throw new Error("Missing or invalid argument")}if(!f){throw new Error("The Browser History Manager is not initialized")}for(n in m){if(!d[n]){throw new Error("The following module has not been registered: "+n)}}l=[];for(n in d){if(YAHOO.lang.hasOwnProperty(d,n)){p=d[n];if(YAHOO.lang.hasOwnProperty(m,n)){o=m[unescape(n)]}else{o=unescape(p.currentState)}n=escape(n);o=escape(o);l.push(n+"="+o)}}q=l.join("&");if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){return j(q)}else{top.location.hash=q;if(YAHOO.env.ua.webkit){b[history.length]=q;a()}return true}},getCurrentState:function(l){var m;if(typeof l!=="string"){throw new Error("Missing or invalid argument")}if(!f){throw new Error("The Browser History Manager is not initialized")}m=d[l];if(!m){throw new Error("No such registered module: "+l)}return unescape(m.currentState)},getBookmarkedState:function(q){var p,m,l,s,n,r,o;if(typeof q!=="string"){throw new Error("Missing or invalid argument")}l=top.location.href.indexOf("#");if(l>=0){s=top.location.href.substr(l+1);n=s.split("&");for(p=0,m=n.length;p<m;p++){r=n[p].split("=");if(r.length===2){o=r[0];if(o===q){return unescape(r[1])}}}}return null},getQueryStringParameter:function(q,n){var o,m,l,s,r,p;n=n||top.location.href;l=n.indexOf("?");s=l>=0?n.substr(l+1):n;l=s.lastIndexOf("#");s=l>=0?s.substr(0,l):s;r=s.split("&");for(o=0,m=r.length;o<m;o++){p=r[o].split("=");if(p.length>=2){if(p[0]===q){return unescape(p[1])}}}return null}}})();YAHOO.register("history",YAHOO.util.History,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/element/element-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name);}return A;},setValue:function(F,B){var E,A=this.owner,C=this.name;var D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(A,F)){return false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return false;}}if(this.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var A in B){if(B.hasOwnProperty(A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig,true);},refresh:function(A){this.setValue(this.value,A);}};(function(){var A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var B=this._configs[C];if(!B||!this._configs.hasOwnProperty(C)){return null;}return B.getValue();},set:function(D,E,B){this._configs=this._configs||{};var C=this._configs[D];if(!C){return false;}return C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var C=[],B;for(B in this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return C;},setAttributes:function(D,B){for(var C in D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return true;}return false;},refresh:function(E,C){this._configs=this._configs||{};var F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var B=this._configs[C]||{};var D={};for(C in B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B in this._events)){this._events[B]=this.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return this.fireEvent(B.type,B);},createAttribute:function(B){return new YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var B=YAHOO.util.Dom,C=YAHOO.util.AttributeProvider;var A=function(D,E){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true,"change":true};A.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(F,D){var E=this.get("element");if(E){E[D]=F;}},DEFAULT_HTML_GETTER:function(D){var E=this.get("element"),F;if(E){F=E[D];}return F;},appendChild:function(D){D=D.get?D.get("element"):D;return this.get("element").appendChild(D);},getElementsByTagName:function(D){return this.get("element").getElementsByTagName(D);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(D,E){D=D.get?D.get("element"):D;E=(E&&E.get)?E.get("element"):E;return this.get("element").insertBefore(D,E);},removeChild:function(D){D=D.get?D.get("element"):D;return this.get("element").removeChild(D);},replaceChild:function(D,E){D=D.get?D.get("element"):D;E=E.get?E.get("element"):E;return this.get("element").replaceChild(D,E);},initAttributes:function(D){},addListener:function(H,G,I,F){var E=this.get("element")||this.get("id");F=F||this;var D=this;if(!this._events[H]){if(E&&this.DOM_EVENTS[H]){YAHOO.util.Event.addListener(E,H,function(J){if(J.srcElement&&!J.target){J.target=J.srcElement;}D.fireEvent(H,J);},I,F);}this.createEvent(H,this);}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(E,D){return this.unsubscribe.apply(this,arguments);},addClass:function(D){B.addClass(this.get("element"),D);},getElementsByClassName:function(E,D){return B.getElementsByClassName(E,D,this.get("element"));},hasClass:function(D){return B.hasClass(this.get("element"),D);},removeClass:function(D){return B.removeClass(this.get("element"),D);},replaceClass:function(E,D){return B.replaceClass(this.get("element"),E,D);},setStyle:function(E,D){return B.setStyle(this.get("element"),E,D);},getStyle:function(D){return B.getStyle(this.get("element"),D);},fireQueue:function(){var E=this._queue;for(var F=0,D=E.length;F<D;++F){this[E[F][0]].apply(this,E[F][1]);}},appendTo:function(E,F){E=(E.get)?E.get("element"):B.get(E);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:E});
F=(F&&F.get)?F.get("element"):B.get(F);var D=this.get("element");if(!D){return false;}if(!E){return false;}if(D.parent!=E){if(F){E.insertBefore(D,F);}else{E.appendChild(D);}}this.fireEvent("appendTo",{type:"appendTo",target:E});return D;},get:function(D){var F=this._configs||{},E=F.element;if(E&&!F[D]&&!YAHOO.lang.isUndefined(E.value[D])){this._setHTMLAttrConfig(D);}return C.prototype.get.call(this,D);},setAttributes:function(J,G){var E={},H=this._configOrder;for(var I=0,D=H.length;I<D;++I){if(J[H[I]]!==undefined){E[H[I]]=true;this.set(H[I],J[H[I]],G);}}for(var F in J){if(J.hasOwnProperty(F)&&!E[F]){this.set(F,J[F],G);}}},set:function(E,G,D){var F=this.get("element");if(!F){this._queue[this._queue.length]=["set",arguments];if(this._configs[E]){this._configs[E].value=G;}return;}if(!this._configs[E]&&!YAHOO.lang.isUndefined(F[E])){this._setHTMLAttrConfig(E);}return C.prototype.set.apply(this,arguments);},setAttributeConfig:function(D,E,F){this._configOrder.push(D);C.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(E,D){this._events[E]=true;return C.prototype.createEvent.apply(this,arguments);},init:function(E,D){this._initElement(E,D);},destroy:function(){var D=this.get("element");YAHOO.util.Event.purgeElement(D,true);this.unsubscribeAll();if(D&&D.parentNode){D.parentNode.removeChild(D);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(F,E){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];E=E||{};E.element=E.element||F||null;var H=false;var D=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var G in D){if(D.hasOwnProperty(G)){this.DOM_EVENTS[G]=D[G];}}if(typeof E.element==="string"){this._setHTMLAttrConfig("id",{value:E.element});}if(B.get(E.element)){H=true;this._initHTMLElement(E);this._initContent(E);}YAHOO.util.Event.onAvailable(E.element,function(){if(!H){this._initHTMLElement(E);}this.fireEvent("available",{type:"available",target:B.get(E.element)});},this,true);YAHOO.util.Event.onContentReady(E.element,function(){if(!H){this._initContent(E);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(E.element)});},this,true);},_initHTMLElement:function(D){this.setAttributeConfig("element",{value:B.get(D.element),readOnly:true});},_initContent:function(D){this.initAttributes(D);this.setAttributes(D,true);this.fireQueue();},_setHTMLAttrConfig:function(D,F){var E=this.get("element");F=F||{};F.name=D;F.setter=F.setter||this.DEFAULT_HTML_SETTER;F.getter=F.getter||this.DEFAULT_HTML_GETTER;F.value=F.value||E[D];this._configs[D]=new YAHOO.util.Attribute(F,this);}};YAHOO.augment(A,C);YAHOO.util.Element=A;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/base-min.js */
function getPackageForName(b){var a=b.split(".");var d=window;for(var c=0;c<a.length;c++){if(typeof d[a[c]]=="undefined"){d[a[c]]={};}d=d[a[c]];}return d;}if(log4javascript){var log=log||log4javascript.getDefaultLogger();if(log4javascript.isEnabled()){log.info("Log initialized");}}if(YAHOO&&YAHOO.env){try{if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){if(log){log.debug("Forcing background image cache on IE6.");}document.execCommand("BackgroundImageCache",false,true);}}catch(e){if(log){log.warn("Exception received while executing background image cache command. This is expected if you are running MultipleIEs",e);}}}var _widgets={};var _instances=_instances||{};
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/jsutils-min.js */
(function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;var d=YAHOO.lang;var c=false;var f=getPackageForName("com.forddirect.ng.util");f.ASSETTYPE_IMAGE_KEY="images";f.ASSETTYPE_VIDEO_KEY="videos";f.delayAction=function(i,g,h){return function(){g.call(i,h);};};f.getAsset=function(k,i,m,g){if(k){if(!g){g=f.ASSETTYPE_IMAGE_KEY;}if(!i&&k[g]){for(var h in k[g]){i=h;break;}if(k[g][i]){if(!m){for(var l in k[g][i]){m=l;break;}}if(k[g][i][m]){var j=k[g][i][m];if(j.source){if(g!=f.ASSETTYPE_VIDEO_KEY||j.source.match(/.*\.flv/)){return j;}}}}}}return null;};f.getImage=function(h,g,i){return f.getAsset(h,g,i,f.ASSETTYPE_IMAGE_KEY);};f.getVideo=function(h,g,i){return f.getAsset(h,g,i,f.ASSETTYPE_VIDEO_KEY);};f.getData=function(h,g,k,i,l,o,n,j){var p={success:function(r){if("undefined"==typeof(o)){g.fire(r);}else{try{o.call(j,r);}catch(q){}}},failure:function(q){if("undefined"==typeof(n)){k.fire(q);}else{n.call(j,q);}},argument:{ID:i,params:l}};var m=YAHOO.util.Connect.asyncRequest("GET",h,p);return m;};f.getElementByClassName=function(j,h,g,i,k){return f.Dom.getElementByClassName(j,h,g,i,k);};f.trimString=function(g){return g.replace(/^\s+|\s+$/g,"");};f.Event=f.Event||{};f.Event.getRelatedTarget=function(h){var g=YAHOO.util.Event.getRelatedTarget(h);if(!g){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie>0){if(h.type==="mouseleave"){g=h.toElement;}else{g=h.fromElement;}}}return g;};f.Event.newHandler=function(h,i){var g=f.X.wrap(function(k,j){h.call(i?i:null,k,j);},i);return g;};f.X={};f.X.wrap=function(i,j,h){var g=function(){try{i.apply(j?j:null,arguments);}catch(k){if(h){h.call(j?j:null,k);}else{if(h===false){log.warn(k);}else{log.error(k);throw k;}}}};return g;};f.addCSSRule=function(h,k,i){log.debug("Attempting to add rule '"+k+"' on '"+h+"'.");var g=null;if(typeof(i)=="undefined"){i=0;}var j=document.styleSheets[0];if(j){var m=!(j.cssRules)?j.rules:j.cssRules;var l=null;if(!k){k="zoom: 1;";}if(typeof(j.insertRule)!="undefined"){log.debug("Adding rule '"+k+"' on '"+h+"' at index '"+i+"' via stylesheet.insertRule.");l=j.insertRule(h+" { "+k+" }",i);log.debug("Adding rule at index '"+l+"'.");if(!l){l=i;}}else{if(typeof(j.addRule)!="undefined"){log.debug("Adding rule '"+k+"' on '"+h+"' via stylesheet.addRule.");j.addRule(h,k,i);log.debug("... done.");l=i;}else{log.warning("Unable to add rule '"+k+"' on '"+h+"'. User agent does not support.");}}if(typeof(l)!="undefined"&&l!==null){j=document.styleSheets[0];if(j.cssRules){g=j.cssRules[l];}else{if(j.rules){g=j.rules(l);}}log.debug("Returning rule '"+g+"'.");}else{log.warn("Cannot return result due to invalid rule index.");}}return g;};f.removeCSSRule=function(h){if(h){var g=h.parentStyleSheet;if(g&&g.deleteRule){g.deleteRule(h);}}};f.formatWithComma=function(j){var h=parseInt(j,10).toString();var k="";h=f.reverse(h);for(var g=0;g<h.length;g++){k+=(g!==0&&g%3===0)?",":"";k+=h.charAt(g);}return f.reverse(k);};f.reverse=function(j){var h="";for(var g=(j.length-1);g>=0;g--){h=h+j.charAt(g);}return h;};f.Actions={};f.Actions.newHandler=function(h,i){var g=f.X.wrap(function(k,j){var l=j[1];if(l&&!l.decrepitate){var n=null;if(l.anchor){n=l.anchor;}else{if(l.input){n=l.input;}else{if(l.button){n=l.button;}else{n=l.target;}}}var m=false;if(n){m=h.call(i?i:null,n,k);if(typeof(m)==="undefined"){m=true;}}else{log.debug("Cannot find target for event '"+l+"'.");}l.decrepitate=l.stop=m;}},i);return g;};f.Array={};f.Array.indexOf=function(j,h){var g=j.length;var i=Number(arguments[1])||0;i=(i<0)?Math.ceil(i):Math.floor(i);if(i<0){i+=g;}for(;i<g;i++){if(i in j&&j[i]===h){return i;}}return -1;};f.Array.contains=function(j,h){for(var g=0;g<j.length;g++){if(h===j[g]){return true;}}return false;};f.Array.forEach=function(k,j,h){for(var g=0;g<k.length;g++){j.call(h?h:null,k[g]);}};f.Text={equalsIgnoreCase:function(h,g){return h?(g&&h.toLowerCase()===g.toLowerCase()):(!g);},ellipse:function(g,h){return(g&&h&&g.length>h)?g.substring(0,h+1)+"&hellip;":g;},asNumber:function(i,g){if(i&&!(i instanceof Number)){try{i=parseInt(""+i,g||10);}catch(h){i=0;}}if(!i){i=0;}return i;},asUL:function(p){var j="·•";var l=j+"\n";var o=0;var k="";var g="";if(p){var i=new RegExp("^[^"+l+"]+");var m=p.match(i);if(m&&m.length){k=m[0];}var h=new RegExp("["+j+"]([^"+j+"\n]+)","g");for(var n=h.exec(p);n;n=h.exec(p)){if(n[1]){g+="<li>"+n[1]+"</li>";}}}return{leadin:k,listHTML:g};}};f.Dom={};f.Dom.patterns={HYPHEN:/(-[a-z])/i};f.Dom.propertyCache={};f.Dom.toCamel=function(g){if(!f.Dom.patterns.HYPHEN.test(g)){return g;}if(f.Dom.propertyCache[g]){return f.Dom.propertyCache[g];}var h=g;while(f.Dom.patterns.HYPHEN.exec(h)){h=h.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}f.Dom.propertyCache[g]=h;return h;};var e;if(YAHOO.env.ua.ie){e=function(g,h){switch(h){case"opacity":g.style.filter="";break;case"float":h="styleFloat";default:g.style[h]="";break;}};}else{e=function(g,h){if(h=="float"){h="cssFloat";}g.style[h]="";};}f.Dom.removeStyle=function(h,i){i=f.Dom.toCamel(i);var g=function(j){e(j,i);};b.batch(h,g,b,true);};f.Dom.addClasses=function(h,i){var g=d.isArray(i)?i:i.split(" ");f.Array.forEach(g,function(j){b.addClass(h,j);});};f.Dom.removeClasses=function(h,i){var g=d.isArray(i)?i:i.split(" ");f.Array.forEach(g,function(j){b.removeClass(h,j);});};f.Dom.getElementByClassName=function(k,i,h,j,m){var l=b.getElementsByClassName(k,i,h);var g=(l&&l.length?l[0]:null);if(j&&g){j.apply(m?m:null,[g]);}return g;};})();function embedFlashObject(a){document.write(a);}function embedFlashObjectIntoElement(b,a){if(b){b.innerHTML=a;}}
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/formUtils-min.js */
(function(){var b=YAHOO.util.Dom;var f=getPackageForName("com.forddirect.ng.util");var d="f:";var c="s:";var e="session";var a="input";f.Forms={getFormSubmissionURL:function(i,h,j){var g="";var k=f.Forms.getForm(j||f.Forms.acceptForm);if(k){if(i){for(var l in i){g+=(g?"&":"")+l+"="+i[l];}}if(h){if(typeof(h)==="string"){g+=(g?"&":"")+h;}else{for(var m in h){g+=(g?"&":"")+l+"="+i[l];}}}g+=(g?"&":"")+f.Forms.getQueryString(j);}return g;},getQueryString:function(i){var g="";var h=f.Forms.getForm(i||f.Forms.acceptForm);if(h){b.getElementsByClassName(e,a,h,function(j){g+=(g?"&":"")+j.name+"="+j.value;});g+=(g?"&":"")+"formID=x";}else{log.warn("Unable to find a session-enabled form.");}return g;},getForms:function(h){h=h||f.Forms.acceptForm;var g=[];b.batch(document.forms,function(i){if(h(i)){g.push(i);}});return g;},getForm:function(j){j=j||f.Forms.acceptForm;for(var g=0;g<document.forms.length;g++){var h=document.forms[g];if(j(h)){return h;}}return null;},acceptForm:function(g){var h=f.Dom.getElementByClassName("formID","input",g);return h;},acceptSubmissionControl:function(g){return g&&"INPUT"===g.tagName&&"submit"===g.type;},getParameter:function(h,j,i){var g=null;b.batch(f.Forms.getForms(i),function(n){if(!g){var k=n.getElementsByTagName("input");for(var m=0;m<k.length;m++){var l=k[m];if(l.name&&l.name==d+h){if(!j||!f.Array.contains(j,l.value)){g=l.value;break;}}}}});return g;},setParameter:function(i,k,j){var h=d+i;var g=false;b.batch(f.Forms.getForms(j),function(l){b.batch(l.getElementsByTagName("INPUT"),function(m){if(m.name===h){g=true;m.value=k;}});});if(!g){log.warn("Unable to set form parameter '"+i+"': no such field found.");}return g;},submit:function(j,i){var g=false;var k=f.Forms.getForm(j);if(k){var h=f.Forms.getSubmissionControl(k,i);if(h){try{g=true;h.click();}catch(l){g=false;log.warn("Unable to submit form",l);}}}return g;},getSessionAttribute:function(i,j){var k=f.Forms.getForm(j);if(k){var g=c+i;var h=b.getElementBy(function(l){return g===l.name;},"INPUT",k);if(h){return h.value;}}return null;},setSessionAttribute:function(h,j,i){var g=c+h;b.batch(f.Forms.getForms(i),function(k){b.batch(k.getElementsByTagName("input"),function(l){if(l.name===g){l.value=j;}});});},getSubmissionControl:function(h,g){g=g||f.Forms.acceptSubmissionControl;var i=b.getElementsBy(g,null,h);return(i&&i.length)?i[0]:null;},getFormID:function(g){var h=f.Dom.getElementByClassName("formID","input",g);return h?h.value:null;}};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/wtk/util/CookieManager-min.js */
(function(){var b=getPackageForName("com.forddirect.ng.wtk.util");b.CookieManager=function(){this.isCookieEnabled=false;this.init=function(){var c="fdtestCookie"+Math.round(Math.random()*Math.PI*1000);YAHOO.util.Cookie.set("example",c);var d=YAHOO.util.Cookie.get("example");if(null===d){this.isCookieEnabled=false;}else{if(d===c){this.isCookieEnabled=true;}else{this.isCookieEnabled=false;}}YAHOO.util.Cookie.remove("example");};this.setCookie=function(c,d,e){log.debug("CookieManager:: Cookie( "+c+" ) = "+d);if(null!==e&&typeof e!=="undefined"){YAHOO.util.Cookie.set(unescape(c),unescape(d),e);}else{YAHOO.util.Cookie.set(unescape(c),unescape(d));}};this.setSubs=function(c,d,e){log.debug("CookieManager:: Sub - Cookie( "+c+" ) = "+d);if(null!==e&&typeof e!=="undefined"){YAHOO.util.Cookie.setSubs(c,d,e);}else{YAHOO.util.Cookie.setSubs(c,d);}};this.setSub=function(c,f,d,e){log.debug("CookieManager:: Sub - Cookie( "+c+" ) = "+d);if(null!==e&&typeof e!=="undefined"){YAHOO.util.Cookie.setSub(c,f,d,e);}else{YAHOO.util.Cookie.setSub(c,f,d);}};this.readCookie=function(c,d){if(null!==d&&typeof d!=="undefined"){return YAHOO.util.Cookie.get(c,d);}else{return YAHOO.util.Cookie.get(c);}};this.getSubs=function(c){return YAHOO.util.Cookie.getSubs(c);};this.getSub=function(c,d){return YAHOO.util.Cookie.getSub(c,d);};this.removeCookie=function(d,c){if(null!==c){return YAHOO.util.Cookie.remove(d,c);}else{return YAHOO.util.Cookie.remove(d);}};};var a=b.CookieManager.prototype;_instances.cookieManager=new b.CookieManager();})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/wtk/util/CookieUtils-min.js */
(function(){var c=getPackageForName("com.forddirect.ng.wtk.util");var a=null;c.CookieUtils=function(){this.expiryDate=new Date(Date.parse((new Date()).toString())+(3600000*24*65));this.options={path:"/",domain:__params.domain};this.removeCookieOptions={path:this.options.path,domain:this.options.domain};this.removeCookieOptions.expires=new Date(0);this.optionsWithExpiry={path:this.options.path,domain:this.options.domain};this.optionsWithExpiry.expires=this.expiryDate;};var b=c.CookieUtils.prototype;b.init=function(d){a=d;};b.setCookies=function(){if(!a.isCookieEnabled){return;}var e=this.fetchAndUpdateCookie("FPI","model",__params.modelName,null,this.optionsWithExpiry);var d=this.fetchAndUpdateCookie("FPI","make",__params.make,null,this.optionsWithExpiry);var g=this.fetchAndUpdateCookie("FPI","year",__params.year,null,this.optionsWithExpiry);var f=this.fetchAndUpdateCookie("FPI","html",__params.html,"false",this.optionsWithExpiry);};b.setPostCookies=function(){if(!a.isCookieEnabled){return;}var e=_widgets.context.AvailableContext;var g=_widgets.context.UserContext;var f=_widgets.context.SelectedContext;var m=this.fetchAndUpdateCookie("FPISession","bannerid",__params.bannerId,null,this.options);var n=this.fetchAndUpdateCookie("FPISession","Personalization",__params.personalization,null,this.options);var i=this.getUserInfo()["zip"];if(i){i=i.split(/[+-]+/)[0];}var d=this.fetchAndUpdateCookie("FPI","zip",__params.zipcode,i,this.optionsWithExpiry);g.set("zipcode",d);var k=this.fetchAndUpdateCookie("planType",null,__params.planType,null,this.options);var l=this.fetchAndUpdateCookie("referrer",null,__params.referrer,null,this.options);var h=f.get("nameplate.sitemap");if(f.get("welcomeBack")&&h&&h["nameplate-welcome-back"]&&h["nameplate-welcome-back"].url){var j=h["nameplate-welcome-back"].url;a.setCookie("redirect",j,this.optionsWithExpiry);}else{a.removeCookie("redirect",this.removeCookieOptions);}};b.getUserInfo=function(){var g={};var e=a.readCookie("userInfo");if(e){var d=e.split(",");for(var f=0;f<d.length;f++){var h=d[f].split("=");if(h.length===2){g[h[0]]=h[1];}}}return g;};b.fetchAndUpdateCookie=function(i,g,f,d,e){if(f){this.checkAndSetSub(i,g,f,e);return f;}var h=this.checkAndGetSub(i,g);if(h){return h;}else{if(d){this.checkAndSetSub(i,g,d,e);return d;}}return null;};b.checkAndSetSub=function(g,e,f,d){if(e){a.setSub(g,e,f,d);}else{a.setCookie(g,f,d);}};b.checkAndGetSub=function(e,d){if(d){return a.getSub(e,d);}else{return a.readCookie(e);}};b.setZipcode=function(d){a.setSub("FPI","zip",d,this.optionsWithExpiry);};_instances.cookieUtils=new c.CookieUtils();})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/wtk/Loader-min.js */
(function(){var g=YAHOO.util;var e=YAHOO.util.Dom;var d=YAHOO.util.Event;var h=YAHOO.widget;var a=getPackageForName("com.forddirect.ng.wtk");var j=getPackageForName("com.forddirect.ng.widgets");var f=getPackageForName("com.forddirect.ng.context");var i=getPackageForName("com.forddirect.ng.views");var c=null;var b="shrink-wrap";a.Loader=function(){this.initCompleteEvent=new g.CustomEvent("onInitComplete");this.browserHistoryChange=new g.CustomEvent("onBrowserHistoryChange");this.addShrinkWrap();this.initializationComplete=false;};a.Loader.prototype.addShrinkWrap=function(){if(!YAHOO.env.ua.webkit){var k=document.createElement("div");k.setAttribute("id",b);e.setStyle(k,"position","absolute");e.setStyle(k,"top",0);e.setStyle(k,"left",0);e.setStyle(k,"width","100%");e.setStyle(k,"opacity",1);e.setStyle(k,"display","block");e.setStyle(k,"zIndex",2000000);e.setStyle(k,"height",window.screen.height+"px");d.onAvailable("page",function(){if(k&&!this.initializationComplete){log.debug("Adding shrink-wrap div over all page content.");document.body.appendChild(k);}k=null;});}};a.Loader.prototype.removeShrinkWrap=function(){var k=e.get(b);if(k){document.body.removeChild(k);}};a.Loader.prototype.init=function(){try{var k=YAHOO.util.History.getBookmarkedState(__params.anchorPage);if(!k){k="";}YAHOO.util.History.register(__params.anchorPage,k,function(){this.browserHistoryChange.fire();},"",this);YAHOO.util.History.initialize("yui-history-field","yui-history-iframe");log.debug("WTK Initialization successful. Activating site.");}finally{YAHOO.util.History.onReady(function(){this.checkAndInit();},null,_instances.bsLoader);}};a.Loader.prototype.initContext=function(){log.debug("Instantiating context widgets.");try{_widgets.context={};_widgets.context.UserContext=new f.UserContext();_widgets.context.LocalContext=new f.LocalContext();_widgets.context.AvailableContext=new f.AvailableContext();_widgets.context.SelectedContext=new f.SelectedContext();_widgets.context.DisclaimerContext=new f.DisclaimerContext();_widgets.context.PricingContext=new f.PricingContext();_widgets.context.SiteContext=new f.SiteContext();if(f.SearchContext){_widgets.context.SearchContext=new f.SearchContext();}else{log.debug("No 'SearchContext' found in context package.");}log.debug("Initializing context widgets.");_widgets.context.UserContext.init();_widgets.context.LocalContext.init();_widgets.context.AvailableContext.init();_widgets.context.SelectedContext.init();_widgets.context.DisclaimerContext.init();_widgets.context.PricingContext.init();_widgets.context.SiteContext.init();if(_widgets.context.SearchContext){_widgets.context.SearchContext.init();}}catch(k){log.error(k);throw k;}};a.Loader.prototype.initViews=function(){log.debug("Initializing views.");try{for(var k in i){if("BaseView"!=k){log.debug("Selecting view '"+k+"' for instantiation.");_widgets.view=new i[k]();break;}}if(typeof _widgets.view!="undefined"){log.debug("Initializing selected view.");_widgets.view.init();}}catch(l){log.error(l);throw l;}log.debug("View initialization complete.");};a.Loader.prototype.checkAndInit=function(){this.removeShrinkWrap();c=_instances.cookieManager;c.init();_instances.cookieUtils.init(c);_instances.cookieUtils.setCookies();this.initContext();this.initViews();_instances.cookieUtils.setPostCookies();this.initializationComplete=true;this.initCompleteEvent.fire();if(_instances.globalNav){_instances.globalNav.onContextLoaded();}};_instances.bsLoader=new a.Loader();})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/animation/animation-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
(function(){var B=YAHOO.util;var A=function(D,C,E,F){if(!D){}this.init(D,C,E,F);};A.NAME="Anim";A.prototype={toString:function(){var C=this.getEl()||{};var D=C.id||C.tagName;return(this.constructor.NAME+": "+D);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(C,E,D){return this.method(this.currentFrame,E,D-E,this.totalFrames);},setAttribute:function(C,F,E){var D=this.getEl();if(this.patterns.noNegatives.test(C)){F=(F>0)?F:0;}if("style" in D){B.Dom.setStyle(D,C,F+E);}else{if(C in D){D[C]=F;}}},getAttribute:function(C){var E=this.getEl();var G=B.Dom.getStyle(E,C);if(G!=="auto"&&!this.patterns.offsetUnit.test(G)){return parseFloat(G);}var D=this.patterns.offsetAttribute.exec(C)||[];var H=!!(D[3]);var F=!!(D[2]);if("style" in E){if(F||(B.Dom.getStyle(E,"position")=="absolute"&&H)){G=E["offset"+D[0].charAt(0).toUpperCase()+D[0].substr(1)];}else{G=0;}}else{if(C in E){G=E[C];}}return G;},getDefaultUnit:function(C){if(this.patterns.defaultUnit.test(C)){return"px";}return"";},setRuntimeAttribute:function(D){var I;var E;var F=this.attributes;this.runtimeAttributes[D]={};var H=function(J){return(typeof J!=="undefined");};if(!H(F[D]["to"])&&!H(F[D]["by"])){return false;}I=(H(F[D]["from"]))?F[D]["from"]:this.getAttribute(D);if(H(F[D]["to"])){E=F[D]["to"];}else{if(H(F[D]["by"])){if(I.constructor==Array){E=[];for(var G=0,C=I.length;G<C;++G){E[G]=I[G]+F[D]["by"][G]*1;}}else{E=I+F[D]["by"]*1;}}}this.runtimeAttributes[D].start=I;this.runtimeAttributes[D].end=E;this.runtimeAttributes[D].unit=(H(F[D].unit))?F[D]["unit"]:this.getDefaultUnit(D);return true;},init:function(E,J,I,C){var D=false;var F=null;var H=0;E=B.Dom.get(E);this.attributes=J||{};this.duration=!YAHOO.lang.isUndefined(I)?I:1;this.method=C||B.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=B.AnimMgr.fps;this.setEl=function(M){E=B.Dom.get(M);};this.getEl=function(){return E;};this.isAnimated=function(){return D;};this.getStartTime=function(){return F;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(B.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}B.AnimMgr.registerElement(this);return true;};this.stop=function(M){if(!this.isAnimated()){return false;}if(M){this.currentFrame=this.totalFrames;this._onTween.fire();}B.AnimMgr.stop(this);};var L=function(){this.onStart.fire();this.runtimeAttributes={};for(var M in this.attributes){this.setRuntimeAttribute(M);}D=true;H=0;F=new Date();};var K=function(){var O={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};O.toString=function(){return("duration: "+O.duration+", currentFrame: "+O.currentFrame);};this.onTween.fire(O);var N=this.runtimeAttributes;for(var M in N){this.setAttribute(M,this.doMethod(M,N[M].start,N[M].end),N[M].unit);}H+=1;};var G=function(){var M=(new Date()-F)/1000;var N={duration:M,frames:H,fps:H/M};N.toString=function(){return("duration: "+N.duration+", frames: "+N.frames+", fps: "+N.fps);};D=false;H=0;this.onComplete.fire(N);};this._onStart=new B.CustomEvent("_start",this,true);this.onStart=new B.CustomEvent("start",this);this.onTween=new B.CustomEvent("tween",this);this._onTween=new B.CustomEvent("_tween",this,true);this.onComplete=new B.CustomEvent("complete",this);this._onComplete=new B.CustomEvent("_complete",this,true);this._onStart.subscribe(L);this._onTween.subscribe(K);this._onComplete.subscribe(G);}};B.Anim=A;})();YAHOO.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=1000;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start();};this.unRegister=function(G,F){F=F||E(G);if(!G.isAnimated()||F==-1){return false;}G._onComplete.fire();B.splice(F,1);A-=1;if(A<=0){this.stop();}return true;};this.start=function(){if(C===null){C=setInterval(this.run,this.delay);}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){this.unRegister(B[0],0);}B=[];C=null;A=0;}else{this.unRegister(H);}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue;}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G);}G._onTween.fire();}else{YAHOO.util.AnimMgr.stop(G,H);}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]==H){return G;}}return -1;};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame);}else{K=J-(I+1);}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1);}G.currentFrame+=K;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]];}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1];}}return[C[0][0],C[0][1]];};};(function(){var A=function(F,E,G,H){A.superclass.constructor.call(this,F,E,G,H);};A.NAME="ColorAnim";A.DEFAULT_BGCOLOR="#fff";var C=YAHOO.util;YAHOO.extend(A,C.Anim);var D=A.superclass;var B=A.prototype;B.patterns.color=/color$/i;B.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;B.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;B.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;B.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;B.parseColor=function(E){if(E.length==3){return E;}var F=this.patterns.hex.exec(E);if(F&&F.length==4){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(E);if(F&&F.length==4){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(E);if(F&&F.length==4){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)];
}return null;};B.getAttribute=function(E){var G=this.getEl();if(this.patterns.color.test(E)){var I=YAHOO.util.Dom.getStyle(G,E);var H=this;if(this.patterns.transparent.test(I)){var F=YAHOO.util.Dom.getAncestorBy(G,function(J){return !H.patterns.transparent.test(I);});if(F){I=C.Dom.getStyle(F,E);}else{I=A.DEFAULT_BGCOLOR;}}}else{I=D.getAttribute.call(this,E);}return I;};B.doMethod=function(F,J,G){var I;if(this.patterns.color.test(F)){I=[];for(var H=0,E=J.length;H<E;++H){I[H]=D.doMethod.call(this,F,J[H],G[H]);}I="rgb("+Math.floor(I[0])+","+Math.floor(I[1])+","+Math.floor(I[2])+")";}else{I=D.doMethod.call(this,F,J,G);}return I;};B.setRuntimeAttribute=function(F){D.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var H=this.attributes;var J=this.parseColor(this.runtimeAttributes[F].start);var G=this.parseColor(this.runtimeAttributes[F].end);if(typeof H[F]["to"]==="undefined"&&typeof H[F]["by"]!=="undefined"){G=this.parseColor(H[F].by);for(var I=0,E=J.length;I<E;++I){G[I]=J[I]+G[I];}}this.runtimeAttributes[F].start=J;this.runtimeAttributes[F].end=G;}};C.ColorAnim=A;})();
/*
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright 2001 Robert Penner All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
 * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
YAHOO.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A;},easeIn:function(B,A,D,C){return D*(B/=C)*B+A;},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A;},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A;}return -D/2*((--B)*(B-2)-1)+A;},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A;},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A;},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A;}return -D/2*((B-=2)*B*B*B-2)+A;},elasticIn:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;},elasticOut:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A;},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F/2)==2){return A+G;}if(!E){E=F*(0.3*1.5);}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A;},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*(B/=D)*B*((C+1)*B-C)+A;},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A;},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A;}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A;},bounceIn:function(B,A,D,C){return D-YAHOO.util.Easing.bounceOut(C-B,0,D,C)+A;},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A;}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A;}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A;}}}return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A;},bounceBoth:function(B,A,D,C){if(B<C/2){return YAHOO.util.Easing.bounceIn(B*2,0,D,C)*0.5+A;}return YAHOO.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A;}};(function(){var A=function(H,G,I,J){if(H){A.superclass.constructor.call(this,H,G,I,J);}};A.NAME="Motion";var E=YAHOO.util;YAHOO.extend(A,E.ColorAnim);var F=A.superclass;var C=A.prototype;C.patterns.points=/^points$/i;C.setAttribute=function(G,I,H){if(this.patterns.points.test(G)){H=H||"px";F.setAttribute.call(this,"left",I[0],H);F.setAttribute.call(this,"top",I[1],H);}else{F.setAttribute.call(this,G,I,H);}};C.getAttribute=function(G){if(this.patterns.points.test(G)){var H=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{H=F.getAttribute.call(this,G);}return H;};C.doMethod=function(G,K,H){var J=null;if(this.patterns.points.test(G)){var I=this.method(this.currentFrame,0,100,this.totalFrames)/100;J=E.Bezier.getPosition(this.runtimeAttributes[G],I);}else{J=F.doMethod.call(this,G,K,H);}return J;};C.setRuntimeAttribute=function(P){if(this.patterns.points.test(P)){var H=this.getEl();var J=this.attributes;var G;var L=J["points"]["control"]||[];var I;var M,O;if(L.length>0&&!(L[0] instanceof Array)){L=[L];}else{var K=[];for(M=0,O=L.length;M<O;++M){K[M]=L[M];}L=K;}if(E.Dom.getStyle(H,"position")=="static"){E.Dom.setStyle(H,"position","relative");}if(D(J["points"]["from"])){E.Dom.setXY(H,J["points"]["from"]);
}else{E.Dom.setXY(H,E.Dom.getXY(H));}G=this.getAttribute("points");if(D(J["points"]["to"])){I=B.call(this,J["points"]["to"],G);var N=E.Dom.getXY(this.getEl());for(M=0,O=L.length;M<O;++M){L[M]=B.call(this,L[M],G);}}else{if(D(J["points"]["by"])){I=[G[0]+J["points"]["by"][0],G[1]+J["points"]["by"][1]];for(M=0,O=L.length;M<O;++M){L[M]=[G[0]+L[M][0],G[1]+L[M][1]];}}}this.runtimeAttributes[P]=[G];if(L.length>0){this.runtimeAttributes[P]=this.runtimeAttributes[P].concat(L);}this.runtimeAttributes[P][this.runtimeAttributes[P].length]=I;}else{F.setRuntimeAttribute.call(this,P);}};var B=function(G,I){var H=E.Dom.getXY(this.getEl());G=[G[0]-H[0]+I[0],G[1]-H[1]+I[1]];return G;};var D=function(G){return(typeof G!=="undefined");};E.Motion=A;})();(function(){var D=function(F,E,G,H){if(F){D.superclass.constructor.call(this,F,E,G,H);}};D.NAME="Scroll";var B=YAHOO.util;YAHOO.extend(D,B.ColorAnim);var C=D.superclass;var A=D.prototype;A.doMethod=function(E,H,F){var G=null;if(E=="scroll"){G=[this.method(this.currentFrame,H[0],F[0]-H[0],this.totalFrames),this.method(this.currentFrame,H[1],F[1]-H[1],this.totalFrames)];}else{G=C.doMethod.call(this,E,H,F);}return G;};A.getAttribute=function(E){var G=null;var F=this.getEl();if(E=="scroll"){G=[F.scrollLeft,F.scrollTop];}else{G=C.getAttribute.call(this,E);}return G;};A.setAttribute=function(E,H,G){var F=this.getEl();if(E=="scroll"){F.scrollLeft=H[0];F.scrollTop=H[1];}else{C.setAttribute.call(this,E,H,G);}};B.Scroll=D;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/connection/connection-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(C){var B=YAHOO.util.Event.getTarget(C),A=B.nodeName.toLowerCase();if((A==="input"||A==="button")&&(B.type&&B.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(B.name)+"="+encodeURIComponent(B.value);}});return true;}return false;})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var E,A;try{A=new XMLHttpRequest();E={conn:A,tId:F};}catch(D){for(var B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);E={conn:A,tId:F};break;}catch(C){}}}finally{return E;}},getConnectionObject:function(A){var C;var D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={};C.tId=D;C.isUpload=true;}if(C){this._transaction_id++;}}catch(B){}finally{return C;}},asyncRequest:function(F,C,E,A){var D=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var B=(E&&E.argument)?E.argument:null;if(!D){return null;}else{if(E&&E.customevents){this.initCustomEvents(D,E);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(D,E,C,A);return D;}if(F.toUpperCase()=="GET"){if(this._sFormData.length!==0){C+=((C.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(F.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(F.toUpperCase()=="GET"&&(E&&E.cache===false)){C+=((C.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}D.conn.open(F,C,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((F.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(this._has_default_headers||this._has_http_headers){this.setHeader(D);}this.handleReadyState(D,E);D.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(D,B);if(D.startEvent){D.startEvent.fire(D,B);}return D;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this;var A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(F,G,A){var D,C;var B=(G&&G.argument)?G.argument:null;try{if(F.conn.status!==undefined&&F.conn.status!==0){D=F.conn.status;}else{D=13030;}}catch(E){D=13030;}if(D>=200&&D<300||D===1223){C=this.createResponseObject(F,B);if(G&&G.success){if(!G.scope){G.success(C);}else{G.success.apply(G.scope,[C]);}}this.successEvent.fire(C);if(F.successEvent){F.successEvent.fire(C);}}else{switch(D){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:C=this.createExceptionObject(F.tId,B,(A?A:false));if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}break;default:C=this.createResponseObject(F,B);if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}}this.failureEvent.fire(C);if(F.failureEvent){F.failureEvent.fire(C);}}this.releaseObject(F);C=null;},createResponseObject:function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;E<F.length;E++){var B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=F[E].substring(B+2);}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0;var G="communication failure";var C=-1;var B="transaction aborted";var E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;
}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);}}delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(M,H,C){var L,B,K,I,P,J=false,F=[],O=0,E,G,D,N,A;this.resetFormState();if(typeof M=="string"){L=(document.getElementById(M)||document.forms[M]);}else{if(typeof M=="object"){L=M;}else{return;}}if(H){this.createFrame(C?C:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=L;return;}for(E=0,G=L.elements.length;E<G;++E){B=L.elements[E];P=B.disabled;K=B.name;if(!P&&K){K=encodeURIComponent(K)+"=";I=encodeURIComponent(B.value);switch(B.type){case"select-one":if(B.selectedIndex>-1){A=B.options[B.selectedIndex];F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}break;case"select-multiple":if(B.selectedIndex>-1){for(D=B.selectedIndex,N=B.options.length;D<N;++D){A=B.options[D];if(A.selected){F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}}}break;case"radio":case"checkbox":if(B.checked){F[O++]=K+I;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(J===false){if(this._hasSubmitListener&&this._submitElementValue){F[O++]=this._submitElementValue;}J=true;}break;default:F[O++]=K+I;}}}this._isFormSubmit=true;this._sFormData=F.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(A){var B="yuiIO"+this._transaction_id;var C;if(YAHOO.env.ua.ie){C=document.createElement('<iframe id="'+B+'" name="'+B+'" />');if(typeof A=="boolean"){C.src="javascript:false";}}else{C=document.createElement("iframe");C.id=B;C.name=B;}C.style.position="absolute";C.style.top="-1000px";C.style.left="-1000px";document.body.appendChild(C);},appendPostData:function(A){var D=[],B=A.split("&"),C,E;for(C=0;C<B.length;C++){E=B[C].indexOf("=");if(E!=-1){D[C]=document.createElement("input");D[C].type="hidden";D[C].name=decodeURIComponent(B[C].substring(0,E));D[C].value=decodeURIComponent(B[C].substring(E+1));this._formNode.appendChild(D[C]);}}return D;},uploadFile:function(D,N,E,C){var I="yuiIO"+D.tId,J="multipart/form-data",L=document.getElementById(I),O=this,K=(N&&N.argument)?N.argument:null,M,H,B,G;var A={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",E);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",I);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",J);}else{this._formNode.setAttribute("enctype",J);}if(C){M=this.appendPostData(C);}this._formNode.submit();this.startEvent.fire(D,K);if(D.startEvent){D.startEvent.fire(D,K);}if(N&&N.timeout){this._timeOut[D.tId]=window.setTimeout(function(){O.abort(D,N,true);},N.timeout);}if(M&&M.length>0){for(H=0;H<M.length;H++){this._formNode.removeChild(M[H]);}}for(B in A){if(YAHOO.lang.hasOwnProperty(A,B)){if(A[B]){this._formNode.setAttribute(B,A[B]);}else{this._formNode.removeAttribute(B);}}}this.resetFormState();var F=function(){if(N&&N.timeout){window.clearTimeout(O._timeOut[D.tId]);delete O._timeOut[D.tId];}O.completeEvent.fire(D,K);if(D.completeEvent){D.completeEvent.fire(D,K);}G={tId:D.tId,argument:N.argument};try{G.responseText=L.contentWindow.document.body?L.contentWindow.document.body.innerHTML:L.contentWindow.document.documentElement.textContent;G.responseXML=L.contentWindow.document.XMLDocument?L.contentWindow.document.XMLDocument:L.contentWindow.document;}catch(P){}if(N&&N.upload){if(!N.scope){N.upload(G);}else{N.upload.apply(N.scope,[G]);}}O.uploadEvent.fire(G);if(D.uploadEvent){D.uploadEvent.fire(G);}YAHOO.util.Event.removeListener(L,"load",F);setTimeout(function(){document.body.removeChild(L);O.releaseObject(D);},100);};YAHOO.util.Event.addListener(L,"load",F);},abort:function(E,G,A){var D;var B=(G&&G.argument)?G.argument:null;if(E&&E.conn){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E&&E.isUpload===true){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(B){if(B&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0;}else{if(B&&B.isUpload===true){var A="yuiIO"+B.tId;return document.getElementById(A)?true:false;}else{return false;}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/container/container-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
(function(){YAHOO.util.Config=function(D){if(D){this.init(D);}};var B=YAHOO.lang,C=YAHOO.util.CustomEvent,A=YAHOO.util.Config;A.CONFIG_CHANGED_EVENT="configChanged";A.BOOLEAN_TYPE="boolean";A.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(D){this.owner=D;this.configChangedEvent=this.createEvent(A.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=C.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(D){return(typeof D==A.BOOLEAN_TYPE);},checkNumber:function(D){return(!isNaN(D));},fireEvent:function(D,F){var E=this.config[D];if(E&&E.event){E.event.fire(F);}},addProperty:function(E,D){E=E.toLowerCase();this.config[E]=D;D.event=this.createEvent(E,{scope:this.owner});D.event.signature=C.LIST;D.key=E;if(D.handler){D.event.subscribe(D.handler,this.owner);}this.setProperty(E,D.value,true);if(!D.suppressEvent){this.queueProperty(E,D.value);}},getConfig:function(){var D={},F=this.config,G,E;for(G in F){if(B.hasOwnProperty(F,G)){E=F[G];if(E&&E.event){D[G]=E.value;}}}return D;},getProperty:function(D){var E=this.config[D.toLowerCase()];if(E&&E.event){return E.value;}else{return undefined;}},resetProperty:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event){if(this.initialConfig[D]&&!B.isUndefined(this.initialConfig[D])){this.setProperty(D,this.initialConfig[D]);return true;}}else{return false;}},setProperty:function(E,G,D){var F;E=E.toLowerCase();if(this.queueInProgress&&!D){this.queueProperty(E,G);return true;}else{F=this.config[E];if(F&&F.event){if(F.validator&&!F.validator(G)){return false;}else{F.value=G;if(!D){this.fireEvent(E,G);this.configChangedEvent.fire([E,G]);}return true;}}else{return false;}}},queueProperty:function(S,P){S=S.toLowerCase();var R=this.config[S],K=false,J,G,H,I,O,Q,F,M,N,D,L,T,E;if(R&&R.event){if(!B.isUndefined(P)&&R.validator&&!R.validator(P)){return false;}else{if(!B.isUndefined(P)){R.value=P;}else{P=R.value;}K=false;J=this.eventQueue.length;for(L=0;L<J;L++){G=this.eventQueue[L];if(G){H=G[0];I=G[1];if(H==S){this.eventQueue[L]=null;this.eventQueue.push([S,(!B.isUndefined(P)?P:I)]);K=true;break;}}}if(!K&&!B.isUndefined(P)){this.eventQueue.push([S,P]);}}if(R.supercedes){O=R.supercedes.length;for(T=0;T<O;T++){Q=R.supercedes[T];F=this.eventQueue.length;for(E=0;E<F;E++){M=this.eventQueue[E];if(M){N=M[0];D=M[1];if(N==Q.toLowerCase()){this.eventQueue.push([N,D]);this.eventQueue[E]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event&&!B.isUndefined(E.value)){if(this.queueInProgress){this.queueProperty(D);}else{this.fireEvent(D,E.value);}}},applyConfig:function(D,G){var F,E;if(G){E={};for(F in D){if(B.hasOwnProperty(D,F)){E[F.toLowerCase()]=D[F];}}this.initialConfig=E;}for(F in D){if(B.hasOwnProperty(D,F)){this.queueProperty(F,D[F]);}}},refresh:function(){var D;for(D in this.config){if(B.hasOwnProperty(this.config,D)){this.refireEvent(D);}}},fireQueue:function(){var E,H,D,G,F;this.queueInProgress=true;for(E=0;E<this.eventQueue.length;E++){H=this.eventQueue[E];if(H){D=H[0];G=H[1];F=this.config[D];F.value=G;this.eventQueue[E]=null;this.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(E,F,H,D){var G=this.config[E.toLowerCase()];if(G&&G.event){if(!A.alreadySubscribed(G.event,F,H)){G.event.subscribe(F,H,D);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(D,E,G){var F=this.config[D.toLowerCase()];if(F&&F.event){return F.event.unsubscribe(E,G);}else{return false;}},toString:function(){var D="Config";if(this.owner){D+=" ["+this.owner.toString()+"]";}return D;},outputEventQueue:function(){var D="",G,E,F=this.eventQueue.length;for(E=0;E<F;E++){G=this.eventQueue[E];if(G){D+=G[0]+"="+G[1]+", ";}}return D;},destroy:function(){var E=this.config,D,F;for(D in E){if(B.hasOwnProperty(E,D)){F=E[D];F.event.unsubscribeAll();F.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};A.alreadySubscribed=function(E,H,I){var F=E.subscribers.length,D,G;if(F>0){G=F-1;do{D=E.subscribers[G];if(D&&D.obj==I&&D.fn==H){return true;}}while(G--);}return false;};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Module=function(R,Q){if(R){this.init(R,Q);}else{}};var F=YAHOO.util.Dom,D=YAHOO.util.Config,N=YAHOO.util.Event,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,I=YAHOO.env.ua,H,P,O,E,A={"BEFORE_INIT":"beforeInit","INIT":"init","APPEND":"append","BEFORE_RENDER":"beforeRender","RENDER":"render","CHANGE_HEADER":"changeHeader","CHANGE_BODY":"changeBody","CHANGE_FOOTER":"changeFooter","CHANGE_CONTENT":"changeContent","DESTORY":"destroy","BEFORE_SHOW":"beforeShow","SHOW":"show","BEFORE_HIDE":"beforeHide","HIDE":"hide"},J={"VISIBLE":{key:"visible",value:true,validator:YAHOO.lang.isBoolean},"EFFECT":{key:"effect",suppressEvent:true,supercedes:["visible"]},"MONITOR_RESIZE":{key:"monitorresize",value:true},"APPEND_TO_DOCUMENT_BODY":{key:"appendtodocumentbody",value:false}};G.IMG_ROOT=null;G.IMG_ROOT_SSL=null;G.CSS_MODULE="yui-module";G.CSS_HEADER="hd";G.CSS_BODY="bd";G.CSS_FOOTER="ft";G.RESIZE_MONITOR_SECURE_URL="javascript:false;";G.RESIZE_MONITOR_BUFFER=1;G.textResizeEvent=new M("textResize");G.forceDocumentRedraw=function(){var Q=document.documentElement;if(Q){Q.className+=" ";Q.className=YAHOO.lang.trim(Q.className);}};function L(){if(!H){H=document.createElement("div");H.innerHTML=('<div class="'+G.CSS_HEADER+'"></div>'+'<div class="'+G.CSS_BODY+'"></div><div class="'+G.CSS_FOOTER+'"></div>');P=H.firstChild;O=P.nextSibling;E=O.nextSibling;}return H;}function K(){if(!P){L();}return(P.cloneNode(false));}function B(){if(!O){L();}return(O.cloneNode(false));}function C(){if(!E){L();}return(E.cloneNode(false));}G.prototype={constructor:G,element:null,header:null,body:null,footer:null,id:null,imageRoot:G.IMG_ROOT,initEvents:function(){var Q=M.LIST;
this.beforeInitEvent=this.createEvent(A.BEFORE_INIT);this.beforeInitEvent.signature=Q;this.initEvent=this.createEvent(A.INIT);this.initEvent.signature=Q;this.appendEvent=this.createEvent(A.APPEND);this.appendEvent.signature=Q;this.beforeRenderEvent=this.createEvent(A.BEFORE_RENDER);this.beforeRenderEvent.signature=Q;this.renderEvent=this.createEvent(A.RENDER);this.renderEvent.signature=Q;this.changeHeaderEvent=this.createEvent(A.CHANGE_HEADER);this.changeHeaderEvent.signature=Q;this.changeBodyEvent=this.createEvent(A.CHANGE_BODY);this.changeBodyEvent.signature=Q;this.changeFooterEvent=this.createEvent(A.CHANGE_FOOTER);this.changeFooterEvent.signature=Q;this.changeContentEvent=this.createEvent(A.CHANGE_CONTENT);this.changeContentEvent.signature=Q;this.destroyEvent=this.createEvent(A.DESTORY);this.destroyEvent.signature=Q;this.beforeShowEvent=this.createEvent(A.BEFORE_SHOW);this.beforeShowEvent.signature=Q;this.showEvent=this.createEvent(A.SHOW);this.showEvent.signature=Q;this.beforeHideEvent=this.createEvent(A.BEFORE_HIDE);this.beforeHideEvent.signature=Q;this.hideEvent=this.createEvent(A.HIDE);this.hideEvent.signature=Q;},platform:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("windows")!=-1||Q.indexOf("win32")!=-1){return"windows";}else{if(Q.indexOf("macintosh")!=-1){return"mac";}else{return false;}}}(),browser:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("opera")!=-1){return"opera";}else{if(Q.indexOf("msie 7")!=-1){return"ie7";}else{if(Q.indexOf("msie")!=-1){return"ie";}else{if(Q.indexOf("safari")!=-1){return"safari";}else{if(Q.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty(J.VISIBLE.key,{handler:this.configVisible,value:J.VISIBLE.value,validator:J.VISIBLE.validator});this.cfg.addProperty(J.EFFECT.key,{suppressEvent:J.EFFECT.suppressEvent,supercedes:J.EFFECT.supercedes});this.cfg.addProperty(J.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:J.MONITOR_RESIZE.value});this.cfg.addProperty(J.APPEND_TO_DOCUMENT_BODY.key,{value:J.APPEND_TO_DOCUMENT_BODY.value});},init:function(V,U){var S,W;this.initEvents();this.beforeInitEvent.fire(G);this.cfg=new D(this);if(this.isSecure){this.imageRoot=G.IMG_ROOT_SSL;}if(typeof V=="string"){S=V;V=document.getElementById(V);if(!V){V=(L()).cloneNode(false);V.id=S;}}this.id=F.generateId(V);this.element=V;W=this.element.firstChild;if(W){var R=false,Q=false,T=false;do{if(1==W.nodeType){if(!R&&F.hasClass(W,G.CSS_HEADER)){this.header=W;R=true;}else{if(!Q&&F.hasClass(W,G.CSS_BODY)){this.body=W;Q=true;}else{if(!T&&F.hasClass(W,G.CSS_FOOTER)){this.footer=W;T=true;}}}}}while((W=W.nextSibling));}this.initDefaultConfig();F.addClass(this.element,G.CSS_MODULE);if(U){this.cfg.applyConfig(U,true);}if(!D.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);}this.initEvent.fire(G);},initResizeMonitor:function(){var R=(I.gecko&&this.platform=="windows");if(R){var Q=this;setTimeout(function(){Q._initResizeMonitor();},0);}else{this._initResizeMonitor();}},_initResizeMonitor:function(){var Q,S,U;function W(){G.textResizeEvent.fire();}if(!I.opera){S=F.get("_yuiResizeMonitor");var V=this._supportsCWResize();if(!S){S=document.createElement("iframe");if(this.isSecure&&G.RESIZE_MONITOR_SECURE_URL&&I.ie){S.src=G.RESIZE_MONITOR_SECURE_URL;}if(!V){U=["<html><head><script ",'type="text/javascript">',"window.onresize=function(){window.parent.","YAHOO.widget.Module.textResizeEvent.","fire();};<","/script></head>","<body></body></html>"].join("");S.src="data:text/html;charset=utf-8,"+encodeURIComponent(U);}S.id="_yuiResizeMonitor";S.title="Text Resize Monitor";S.style.position="absolute";S.style.visibility="hidden";var R=document.body,T=R.firstChild;if(T){R.insertBefore(S,T);}else{R.appendChild(S);}S.style.width="2em";S.style.height="2em";S.style.top=(-1*(S.offsetHeight+G.RESIZE_MONITOR_BUFFER))+"px";S.style.left="0";S.style.borderWidth="0";S.style.visibility="visible";if(I.webkit){Q=S.contentWindow.document;Q.open();Q.close();}}if(S&&S.contentWindow){G.textResizeEvent.subscribe(this.onDomResize,this,true);if(!G.textResizeInitialized){if(V){if(!N.on(S.contentWindow,"resize",W)){N.on(S,"resize",W);}}G.textResizeInitialized=true;}this.resizeMonitor=S;}}},_supportsCWResize:function(){var Q=true;if(I.gecko&&I.gecko<=1.8){Q=false;}return Q;},onDomResize:function(S,R){var Q=-1*(this.resizeMonitor.offsetHeight+G.RESIZE_MONITOR_BUFFER);this.resizeMonitor.style.top=Q+"px";this.resizeMonitor.style.left="0";},setHeader:function(R){var Q=this.header||(this.header=K());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},appendToHeader:function(R){var Q=this.header||(this.header=K());Q.appendChild(R);this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},setBody:function(R){var Q=this.body||(this.body=B());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},appendToBody:function(R){var Q=this.body||(this.body=B());Q.appendChild(R);this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},setFooter:function(R){var Q=this.footer||(this.footer=C());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},appendToFooter:function(R){var Q=this.footer||(this.footer=C());Q.appendChild(R);this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},render:function(S,Q){var T=this,U;function R(V){if(typeof V=="string"){V=document.getElementById(V);}if(V){T._addToParent(V,T.element);T.appendEvent.fire();}}this.beforeRenderEvent.fire();if(!Q){Q=this.element;}if(S){R(S);}else{if(!F.inDocument(this.element)){return false;}}if(this.header&&!F.inDocument(this.header)){U=Q.firstChild;
if(U){Q.insertBefore(this.header,U);}else{Q.appendChild(this.header);}}if(this.body&&!F.inDocument(this.body)){if(this.footer&&F.isAncestor(this.moduleElement,this.footer)){Q.insertBefore(this.body,this.footer);}else{Q.appendChild(this.body);}}if(this.footer&&!F.inDocument(this.footer)){Q.appendChild(this.footer);}this.renderEvent.fire();return true;},destroy:function(){var Q;if(this.element){N.purgeElement(this.element,true);Q=this.element.parentNode;}if(Q){Q.removeChild(this.element);}this.element=null;this.header=null;this.body=null;this.footer=null;G.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(R,Q,S){var T=Q[0];if(T){this.beforeShowEvent.fire();F.setStyle(this.element,"display","block");this.showEvent.fire();}else{this.beforeHideEvent.fire();F.setStyle(this.element,"display","none");this.hideEvent.fire();}},configMonitorResize:function(S,R,T){var Q=R[0];if(Q){this.initResizeMonitor();}else{G.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}},_addToParent:function(Q,R){if(!this.cfg.getProperty("appendtodocumentbody")&&Q===document.body&&Q.firstChild){Q.insertBefore(R,Q.firstChild);}else{Q.appendChild(R);}},toString:function(){return"Module "+this.id;}};YAHOO.lang.augmentProto(G,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Overlay=function(P,O){YAHOO.widget.Overlay.superclass.constructor.call(this,P,O);};var I=YAHOO.lang,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,N=YAHOO.util.Event,F=YAHOO.util.Dom,D=YAHOO.util.Config,K=YAHOO.env.ua,B=YAHOO.widget.Overlay,H="subscribe",E="unsubscribe",C="contained",J,A={"BEFORE_MOVE":"beforeMove","MOVE":"move"},L={"X":{key:"x",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"Y":{key:"y",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"XY":{key:"xy",suppressEvent:true,supercedes:["iframe"]},"CONTEXT":{key:"context",suppressEvent:true,supercedes:["iframe"]},"FIXED_CENTER":{key:"fixedcenter",value:false,supercedes:["iframe","visible"]},"WIDTH":{key:"width",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"HEIGHT":{key:"height",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"AUTO_FILL_HEIGHT":{key:"autofillheight",supercedes:["height"],value:"body"},"ZINDEX":{key:"zindex",value:null},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:false,validator:I.isBoolean,supercedes:["iframe","x","y","xy"]},"IFRAME":{key:"iframe",value:(K.ie==6?true:false),validator:I.isBoolean,supercedes:["zindex"]},"PREVENT_CONTEXT_OVERLAP":{key:"preventcontextoverlap",value:false,validator:I.isBoolean,supercedes:["constraintoviewport"]}};B.IFRAME_SRC="javascript:false;";B.IFRAME_OFFSET=3;B.VIEWPORT_OFFSET=10;B.TOP_LEFT="tl";B.TOP_RIGHT="tr";B.BOTTOM_LEFT="bl";B.BOTTOM_RIGHT="br";B.CSS_OVERLAY="yui-overlay";B.STD_MOD_RE=/^\s*?(body|footer|header)\s*?$/i;B.windowScrollEvent=new M("windowScroll");B.windowResizeEvent=new M("windowResize");B.windowScrollHandler=function(P){var O=N.getTarget(P);if(!O||O===window||O===window.document){if(K.ie){if(!window.scrollEnd){window.scrollEnd=-1;}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){B.windowScrollEvent.fire();},1);}else{B.windowScrollEvent.fire();}}};B.windowResizeHandler=function(O){if(K.ie){if(!window.resizeEnd){window.resizeEnd=-1;}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){B.windowResizeEvent.fire();},100);}else{B.windowResizeEvent.fire();}};B._initialized=null;if(B._initialized===null){N.on(window,"scroll",B.windowScrollHandler);N.on(window,"resize",B.windowResizeHandler);B._initialized=true;}B._TRIGGER_MAP={"windowScroll":B.windowScrollEvent,"windowResize":B.windowResizeEvent,"textResize":G.textResizeEvent};YAHOO.extend(B,G,{CONTEXT_TRIGGERS:[],init:function(P,O){B.superclass.init.call(this,P);this.beforeInitEvent.fire(B);F.addClass(this.element,B.CSS_OVERLAY);if(O){this.cfg.applyConfig(O,true);}if(this.platform=="mac"&&K.gecko){if(!D.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}if(!D.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}this.initEvent.fire(B);},initEvents:function(){B.superclass.initEvents.call(this);var O=M.LIST;this.beforeMoveEvent=this.createEvent(A.BEFORE_MOVE);this.beforeMoveEvent.signature=O;this.moveEvent=this.createEvent(A.MOVE);this.moveEvent.signature=O;},initDefaultConfig:function(){B.superclass.initDefaultConfig.call(this);var O=this.cfg;O.addProperty(L.X.key,{handler:this.configX,validator:L.X.validator,suppressEvent:L.X.suppressEvent,supercedes:L.X.supercedes});O.addProperty(L.Y.key,{handler:this.configY,validator:L.Y.validator,suppressEvent:L.Y.suppressEvent,supercedes:L.Y.supercedes});O.addProperty(L.XY.key,{handler:this.configXY,suppressEvent:L.XY.suppressEvent,supercedes:L.XY.supercedes});O.addProperty(L.CONTEXT.key,{handler:this.configContext,suppressEvent:L.CONTEXT.suppressEvent,supercedes:L.CONTEXT.supercedes});O.addProperty(L.FIXED_CENTER.key,{handler:this.configFixedCenter,value:L.FIXED_CENTER.value,validator:L.FIXED_CENTER.validator,supercedes:L.FIXED_CENTER.supercedes});O.addProperty(L.WIDTH.key,{handler:this.configWidth,suppressEvent:L.WIDTH.suppressEvent,supercedes:L.WIDTH.supercedes});O.addProperty(L.HEIGHT.key,{handler:this.configHeight,suppressEvent:L.HEIGHT.suppressEvent,supercedes:L.HEIGHT.supercedes});O.addProperty(L.AUTO_FILL_HEIGHT.key,{handler:this.configAutoFillHeight,value:L.AUTO_FILL_HEIGHT.value,validator:this._validateAutoFill,supercedes:L.AUTO_FILL_HEIGHT.supercedes});O.addProperty(L.ZINDEX.key,{handler:this.configzIndex,value:L.ZINDEX.value});O.addProperty(L.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:L.CONSTRAIN_TO_VIEWPORT.value,validator:L.CONSTRAIN_TO_VIEWPORT.validator,supercedes:L.CONSTRAIN_TO_VIEWPORT.supercedes});
O.addProperty(L.IFRAME.key,{handler:this.configIframe,value:L.IFRAME.value,validator:L.IFRAME.validator,supercedes:L.IFRAME.supercedes});O.addProperty(L.PREVENT_CONTEXT_OVERLAP.key,{value:L.PREVENT_CONTEXT_OVERLAP.value,validator:L.PREVENT_CONTEXT_OVERLAP.validator,supercedes:L.PREVENT_CONTEXT_OVERLAP.supercedes});},moveTo:function(O,P){this.cfg.setProperty("xy",[O,P]);},hideMacGeckoScrollbars:function(){F.replaceClass(this.element,"show-scrollbars","hide-scrollbars");},showMacGeckoScrollbars:function(){F.replaceClass(this.element,"hide-scrollbars","show-scrollbars");},_setDomVisibility:function(O){F.setStyle(this.element,"visibility",(O)?"visible":"hidden");if(O){F.removeClass(this.element,"yui-overlay-hidden");}else{F.addClass(this.element,"yui-overlay-hidden");}},configVisible:function(R,O,X){var Q=O[0],S=F.getStyle(this.element,"visibility"),Y=this.cfg.getProperty("effect"),V=[],U=(this.platform=="mac"&&K.gecko),g=D.alreadySubscribed,W,P,f,c,b,a,d,Z,T;if(S=="inherit"){f=this.element.parentNode;while(f.nodeType!=9&&f.nodeType!=11){S=F.getStyle(f,"visibility");if(S!="inherit"){break;}f=f.parentNode;}if(S=="inherit"){S="visible";}}if(Y){if(Y instanceof Array){Z=Y.length;for(c=0;c<Z;c++){W=Y[c];V[V.length]=W.effect(this,W.duration);}}else{V[V.length]=Y.effect(this,Y.duration);}}if(Q){if(U){this.showMacGeckoScrollbars();}if(Y){if(Q){if(S!="visible"||S===""){this.beforeShowEvent.fire();T=V.length;for(b=0;b<T;b++){P=V[b];if(b===0&&!g(P.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){P.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);}P.animateIn();}}}}else{if(S!="visible"||S===""){this.beforeShowEvent.fire();this._setDomVisibility(true);this.cfg.refireEvent("iframe");this.showEvent.fire();}else{this._setDomVisibility(true);}}}else{if(U){this.hideMacGeckoScrollbars();}if(Y){if(S=="visible"){this.beforeHideEvent.fire();T=V.length;for(a=0;a<T;a++){d=V[a];if(a===0&&!g(d.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){d.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);}d.animateOut();}}else{if(S===""){this._setDomVisibility(false);}}}else{if(S=="visible"||S===""){this.beforeHideEvent.fire();this._setDomVisibility(false);this.hideEvent.fire();}else{this._setDomVisibility(false);}}}},doCenterOnDOMEvent:function(){var O=this.cfg,P=O.getProperty("fixedcenter");if(O.getProperty("visible")){if(P&&(P!==C||this.fitsInViewport())){this.center();}}},fitsInViewport:function(){var S=B.VIEWPORT_OFFSET,Q=this.element,T=Q.offsetWidth,R=Q.offsetHeight,O=F.getViewportWidth(),P=F.getViewportHeight();return((T+S<O)&&(R+S<P));},configFixedCenter:function(S,Q,T){var U=Q[0],P=D.alreadySubscribed,R=B.windowResizeEvent,O=B.windowScrollEvent;if(U){this.center();if(!P(this.beforeShowEvent,this.center)){this.beforeShowEvent.subscribe(this.center);}if(!P(R,this.doCenterOnDOMEvent,this)){R.subscribe(this.doCenterOnDOMEvent,this,true);}if(!P(O,this.doCenterOnDOMEvent,this)){O.subscribe(this.doCenterOnDOMEvent,this,true);}}else{this.beforeShowEvent.unsubscribe(this.center);R.unsubscribe(this.doCenterOnDOMEvent,this);O.unsubscribe(this.doCenterOnDOMEvent,this);}},configHeight:function(R,P,S){var O=P[0],Q=this.element;F.setStyle(Q,"height",O);this.cfg.refireEvent("iframe");},configAutoFillHeight:function(T,S,P){var V=S[0],Q=this.cfg,U="autofillheight",W="height",R=Q.getProperty(U),O=this._autoFillOnHeightChange;Q.unsubscribeFromConfigEvent(W,O);G.textResizeEvent.unsubscribe(O);this.changeContentEvent.unsubscribe(O);if(R&&V!==R&&this[R]){F.setStyle(this[R],W,"");}if(V){V=I.trim(V.toLowerCase());Q.subscribeToConfigEvent(W,O,this[V],this);G.textResizeEvent.subscribe(O,this[V],this);this.changeContentEvent.subscribe(O,this[V],this);Q.setProperty(U,V,true);}},configWidth:function(R,O,S){var Q=O[0],P=this.element;F.setStyle(P,"width",Q);this.cfg.refireEvent("iframe");},configzIndex:function(Q,O,R){var S=O[0],P=this.element;if(!S){S=F.getStyle(P,"zIndex");if(!S||isNaN(S)){S=0;}}if(this.iframe||this.cfg.getProperty("iframe")===true){if(S<=0){S=1;}}F.setStyle(P,"zIndex",S);this.cfg.setProperty("zIndex",S,true);if(this.iframe){this.stackIframe();}},configXY:function(Q,P,R){var T=P[0],O=T[0],S=T[1];this.cfg.setProperty("x",O);this.cfg.setProperty("y",S);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configX:function(Q,P,R){var O=P[0],S=this.cfg.getProperty("y");this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setX(this.element,O,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configY:function(Q,P,R){var O=this.cfg.getProperty("x"),S=P[0];this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setY(this.element,S,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},showIframe:function(){var P=this.iframe,O;if(P){O=this.element.parentNode;if(O!=P.parentNode){this._addToParent(O,P);}P.style.display="block";}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none";}},syncIframe:function(){var O=this.iframe,Q=this.element,S=B.IFRAME_OFFSET,P=(S*2),R;if(O){O.style.width=(Q.offsetWidth+P+"px");O.style.height=(Q.offsetHeight+P+"px");R=this.cfg.getProperty("xy");if(!I.isArray(R)||(isNaN(R[0])||isNaN(R[1]))){this.syncPosition();R=this.cfg.getProperty("xy");}F.setXY(O,[(R[0]-S),(R[1]-S)]);}},stackIframe:function(){if(this.iframe){var O=F.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(O)&&!isNaN(O)){F.setStyle(this.iframe,"zIndex",(O-1));}}},configIframe:function(R,Q,S){var O=Q[0];function T(){var V=this.iframe,W=this.element,X;if(!V){if(!J){J=document.createElement("iframe");if(this.isSecure){J.src=B.IFRAME_SRC;}if(K.ie){J.style.filter="alpha(opacity=0)";
J.frameBorder=0;}else{J.style.opacity="0";}J.style.position="absolute";J.style.border="none";J.style.margin="0";J.style.padding="0";J.style.display="none";J.tabIndex=-1;}V=J.cloneNode(false);X=W.parentNode;var U=X||document.body;this._addToParent(U,V);this.iframe=V;}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true;}}function P(){T.call(this);this.beforeShowEvent.unsubscribe(P);this._iframeDeferred=false;}if(O){if(this.cfg.getProperty("visible")){T.call(this);}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(P);this._iframeDeferred=true;}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false;}}},_primeXYFromDOM:function(){if(YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))){this.syncPosition();this.cfg.refireEvent("xy");this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);}},configConstrainToViewport:function(P,O,Q){var R=O[0];if(R){if(!D.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}if(!D.alreadySubscribed(this.beforeShowEvent,this._primeXYFromDOM)){this.beforeShowEvent.subscribe(this._primeXYFromDOM);}}else{this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}},configContext:function(T,S,P){var W=S[0],Q,O,U,R,V=this.CONTEXT_TRIGGERS;if(W){Q=W[0];O=W[1];U=W[2];R=W[3];if(V&&V.length>0){R=(R||[]).concat(V);}if(Q){if(typeof Q=="string"){this.cfg.setProperty("context",[document.getElementById(Q),O,U,R],true);}if(O&&U){this.align(O,U);}if(this._contextTriggers){this._processTriggers(this._contextTriggers,E,this._alignOnTrigger);}if(R){this._processTriggers(R,H,this._alignOnTrigger);this._contextTriggers=R;}}}},_alignOnTrigger:function(P,O){this.align();},_findTriggerCE:function(O){var P=null;if(O instanceof M){P=O;}else{if(B._TRIGGER_MAP[O]){P=B._TRIGGER_MAP[O];}}return P;},_processTriggers:function(S,U,R){var Q,T;for(var P=0,O=S.length;P<O;++P){Q=S[P];T=this._findTriggerCE(Q);if(T){T[U](R,this,true);}else{this[U](Q,R);}}},align:function(P,O){var U=this.cfg.getProperty("context"),T=this,S,R,V;function Q(W,X){switch(P){case B.TOP_LEFT:T.moveTo(X,W);break;case B.TOP_RIGHT:T.moveTo((X-R.offsetWidth),W);break;case B.BOTTOM_LEFT:T.moveTo(X,(W-R.offsetHeight));break;case B.BOTTOM_RIGHT:T.moveTo((X-R.offsetWidth),(W-R.offsetHeight));break;}}if(U){S=U[0];R=this.element;T=this;if(!P){P=U[1];}if(!O){O=U[2];}if(R&&S){V=F.getRegion(S);switch(O){case B.TOP_LEFT:Q(V.top,V.left);break;case B.TOP_RIGHT:Q(V.top,V.right);break;case B.BOTTOM_LEFT:Q(V.bottom,V.left);break;case B.BOTTOM_RIGHT:Q(V.bottom,V.right);break;}}}},enforceConstraints:function(P,O,Q){var S=O[0];var R=this.getConstrainedXY(S[0],S[1]);this.cfg.setProperty("x",R[0],true);this.cfg.setProperty("y",R[1],true);this.cfg.setProperty("xy",R,true);},getConstrainedX:function(V){var S=this,O=S.element,e=O.offsetWidth,c=B.VIEWPORT_OFFSET,h=F.getViewportWidth(),d=F.getDocumentScrollLeft(),Y=(e+c<h),b=this.cfg.getProperty("context"),Q,X,j,T=false,f,W,g=d+c,P=d+h-e-c,i=V,U={"tltr":true,"blbr":true,"brbl":true,"trtl":true};var Z=function(){var k;if((S.cfg.getProperty("x")-d)>X){k=(X-e);}else{k=(X+j);}S.cfg.setProperty("x",(k+d),true);return k;};var R=function(){if((S.cfg.getProperty("x")-d)>X){return(W-c);}else{return(f-c);}};var a=function(){var k=R(),l;if(e>k){if(T){Z();}else{Z();T=true;l=a();}}return l;};if(V<g||V>P){if(Y){if(this.cfg.getProperty("preventcontextoverlap")&&b&&U[(b[1]+b[2])]){Q=b[0];X=F.getX(Q)-d;j=Q.offsetWidth;f=X;W=(h-(X+j));a();i=this.cfg.getProperty("x");}else{if(V<g){i=g;}else{if(V>P){i=P;}}}}else{i=c+d;}}return i;},getConstrainedY:function(Z){var W=this,P=W.element,i=P.offsetHeight,h=B.VIEWPORT_OFFSET,d=F.getViewportHeight(),g=F.getDocumentScrollTop(),e=(i+h<d),f=this.cfg.getProperty("context"),U,a,b,X=false,V,Q,c=g+h,S=g+d-i-h,O=Z,Y={"trbr":true,"tlbl":true,"bltl":true,"brtr":true};var T=function(){var k;if((W.cfg.getProperty("y")-g)>a){k=(a-i);}else{k=(a+b);}W.cfg.setProperty("y",(k+g),true);return k;};var R=function(){if((W.cfg.getProperty("y")-g)>a){return(Q-h);}else{return(V-h);}};var j=function(){var l=R(),k;if(i>l){if(X){T();}else{T();X=true;k=j();}}return k;};if(Z<c||Z>S){if(e){if(this.cfg.getProperty("preventcontextoverlap")&&f&&Y[(f[1]+f[2])]){U=f[0];b=U.offsetHeight;a=(F.getY(U)-g);V=a;Q=(d-(a+b));j();O=W.cfg.getProperty("y");}else{if(Z<c){O=c;}else{if(Z>S){O=S;}}}}else{O=h+g;}}return O;},getConstrainedXY:function(O,P){return[this.getConstrainedX(O),this.getConstrainedY(P)];},center:function(){var R=B.VIEWPORT_OFFSET,S=this.element.offsetWidth,Q=this.element.offsetHeight,P=F.getViewportWidth(),T=F.getViewportHeight(),O,U;if(S<P){O=(P/2)-(S/2)+F.getDocumentScrollLeft();}else{O=R+F.getDocumentScrollLeft();}if(Q<T){U=(T/2)-(Q/2)+F.getDocumentScrollTop();}else{U=R+F.getDocumentScrollTop();}this.cfg.setProperty("xy",[parseInt(O,10),parseInt(U,10)]);this.cfg.refireEvent("iframe");if(K.webkit){this.forceContainerRedraw();}},syncPosition:function(){var O=F.getXY(this.element);this.cfg.setProperty("x",O[0],true);this.cfg.setProperty("y",O[1],true);this.cfg.setProperty("xy",O,true);},onDomResize:function(Q,P){var O=this;B.superclass.onDomResize.call(this,Q,P);setTimeout(function(){O.syncPosition();O.cfg.refireEvent("iframe");O.cfg.refireEvent("context");},0);},_getComputedHeight:(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(P){var O=null;if(P.ownerDocument&&P.ownerDocument.defaultView){var Q=P.ownerDocument.defaultView.getComputedStyle(P,"");if(Q){O=parseInt(Q.height,10);}}return(I.isNumber(O))?O:null;};}else{return function(P){var O=null;
if(P.style.pixelHeight){O=P.style.pixelHeight;}return(I.isNumber(O))?O:null;};}})(),_validateAutoFillHeight:function(O){return(!O)||(I.isString(O)&&B.STD_MOD_RE.test(O));},_autoFillOnHeightChange:function(R,P,Q){var O=this.cfg.getProperty("height");if((O&&O!=="auto")||(O===0)){this.fillHeight(Q);}},_getPreciseHeight:function(P){var O=P.offsetHeight;if(P.getBoundingClientRect){var Q=P.getBoundingClientRect();O=Q.bottom-Q.top;}return O;},fillHeight:function(R){if(R){var P=this.innerElement||this.element,O=[this.header,this.body,this.footer],V,W=0,X=0,T=0,Q=false;for(var U=0,S=O.length;U<S;U++){V=O[U];if(V){if(R!==V){X+=this._getPreciseHeight(V);}else{Q=true;}}}if(Q){if(K.ie||K.opera){F.setStyle(R,"height",0+"px");}W=this._getComputedHeight(P);if(W===null){F.addClass(P,"yui-override-padding");W=P.clientHeight;F.removeClass(P,"yui-override-padding");}T=Math.max(W-X,0);F.setStyle(R,"height",T+"px");if(R.offsetHeight!=T){T=Math.max(T-(R.offsetHeight-T),0);}F.setStyle(R,"height",T+"px");}}},bringToTop:function(){var S=[],R=this.element;function V(Z,Y){var b=F.getStyle(Z,"zIndex"),a=F.getStyle(Y,"zIndex"),X=(!b||isNaN(b))?0:parseInt(b,10),W=(!a||isNaN(a))?0:parseInt(a,10);if(X>W){return -1;}else{if(X<W){return 1;}else{return 0;}}}function Q(Y){var X=F.hasClass(Y,B.CSS_OVERLAY),W=YAHOO.widget.Panel;if(X&&!F.isAncestor(R,Y)){if(W&&F.hasClass(Y,W.CSS_PANEL)){S[S.length]=Y.parentNode;}else{S[S.length]=Y;}}}F.getElementsBy(Q,"DIV",document.body);S.sort(V);var O=S[0],U;if(O){U=F.getStyle(O,"zIndex");if(!isNaN(U)){var T=false;if(O!=R){T=true;}else{if(S.length>1){var P=F.getStyle(S[1],"zIndex");if(!isNaN(P)&&(U==P)){T=true;}}}if(T){this.cfg.setProperty("zindex",(parseInt(U,10)+2));}}}},destroy:function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;B.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);B.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);G.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);B.superclass.destroy.call(this);},forceContainerRedraw:function(){var O=this;F.addClass(O.element,"yui-force-redraw");setTimeout(function(){F.removeClass(O.element,"yui-force-redraw");},0);},toString:function(){return"Overlay "+this.id;}});}());(function(){YAHOO.widget.OverlayManager=function(G){this.init(G);};var D=YAHOO.widget.Overlay,C=YAHOO.util.Event,E=YAHOO.util.Dom,B=YAHOO.util.Config,F=YAHOO.util.CustomEvent,A=YAHOO.widget.OverlayManager;A.CSS_FOCUSED="focused";A.prototype={constructor:A,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(I){this.cfg=new B(this);this.initDefaultConfig();if(I){this.cfg.applyConfig(I,true);}this.cfg.fireQueue();var H=null;this.getActive=function(){return H;};this.focus=function(J){var K=this.find(J);if(K){K.focus();}};this.remove=function(K){var M=this.find(K),J;if(M){if(H==M){H=null;}var L=(M.element===null&&M.cfg===null)?true:false;if(!L){J=E.getStyle(M.element,"zIndex");M.cfg.setProperty("zIndex",-1000,true);}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));M.hideEvent.unsubscribe(M.blur);M.destroyEvent.unsubscribe(this._onOverlayDestroy,M);M.focusEvent.unsubscribe(this._onOverlayFocusHandler,M);M.blurEvent.unsubscribe(this._onOverlayBlurHandler,M);if(!L){C.removeListener(M.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus);M.cfg.setProperty("zIndex",J,true);M.cfg.setProperty("manager",null);}if(M.focusEvent._managed){M.focusEvent=null;}if(M.blurEvent._managed){M.blurEvent=null;}if(M.focus._managed){M.focus=null;}if(M.blur._managed){M.blur=null;}}};this.blurAll=function(){var K=this.overlays.length,J;if(K>0){J=K-1;do{this.overlays[J].blur();}while(J--);}};this._manageBlur=function(J){var K=false;if(H==J){E.removeClass(H.element,A.CSS_FOCUSED);H=null;K=true;}return K;};this._manageFocus=function(J){var K=false;if(H!=J){if(H){H.blur();}H=J;this.bringToTop(H);E.addClass(H.element,A.CSS_FOCUSED);K=true;}return K;};var G=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];}if(G){this.register(G);this.overlays.sort(this.compareZIndexDesc);}},_onOverlayElementFocus:function(I){var G=C.getTarget(I),H=this.close;if(H&&(G==H||E.isAncestor(H,G))){this.blur();}else{this.focus();}},_onOverlayDestroy:function(H,G,I){this.remove(I);},_onOverlayFocusHandler:function(H,G,I){this._manageFocus(I);},_onOverlayBlurHandler:function(H,G,I){this._manageBlur(I);},_bindFocus:function(G){var H=this;if(!G.focusEvent){G.focusEvent=G.createEvent("focus");G.focusEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.focusEvent.subscribe(H._onOverlayFocusHandler,G,H);}if(!G.focus){C.on(G.element,H.cfg.getProperty("focusevent"),H._onOverlayElementFocus,null,G);G.focus=function(){if(H._manageFocus(this)){if(this.cfg.getProperty("visible")&&this.focusFirst){this.focusFirst();}this.focusEvent.fire();}};G.focus._managed=true;}},_bindBlur:function(G){var H=this;if(!G.blurEvent){G.blurEvent=G.createEvent("blur");G.blurEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.blurEvent.subscribe(H._onOverlayBlurHandler,G,H);}if(!G.blur){G.blur=function(){if(H._manageBlur(this)){this.blurEvent.fire();}};G.blur._managed=true;}G.hideEvent.subscribe(G.blur);},_bindDestroy:function(G){var H=this;G.destroyEvent.subscribe(H._onOverlayDestroy,G,H);},_syncZIndex:function(G){var H=E.getStyle(G.element,"zIndex");if(!isNaN(H)){G.cfg.setProperty("zIndex",parseInt(H,10));}else{G.cfg.setProperty("zIndex",0);}},register:function(G){var J=false,H,I;if(G instanceof D){G.cfg.addProperty("manager",{value:this});this._bindFocus(G);this._bindBlur(G);this._bindDestroy(G);this._syncZIndex(G);this.overlays.push(G);this.bringToTop(G);J=true;}else{if(G instanceof Array){for(H=0,I=G.length;H<I;H++){J=this.register(G[H])||J;}}}return J;},bringToTop:function(M){var I=this.find(M),L,G,J;if(I){J=this.overlays;J.sort(this.compareZIndexDesc);G=J[0];if(G){L=E.getStyle(G.element,"zIndex");
if(!isNaN(L)){var K=false;if(G!==I){K=true;}else{if(J.length>1){var H=E.getStyle(J[1].element,"zIndex");if(!isNaN(H)&&(L==H)){K=true;}}}if(K){I.cfg.setProperty("zindex",(parseInt(L,10)+2));}}J.sort(this.compareZIndexDesc);}}},find:function(G){var K=G instanceof D,I=this.overlays,M=I.length,J=null,L,H;if(K||typeof G=="string"){for(H=M-1;H>=0;H--){L=I[H];if((K&&(L===G))||(L.id==G)){J=L;break;}}}return J;},compareZIndexDesc:function(J,I){var H=(J.cfg)?J.cfg.getProperty("zIndex"):null,G=(I.cfg)?I.cfg.getProperty("zIndex"):null;if(H===null&&G===null){return 0;}else{if(H===null){return 1;}else{if(G===null){return -1;}else{if(H>G){return -1;}else{if(H<G){return 1;}else{return 0;}}}}}},showAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].show();}},hideAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].hide();}},toString:function(){return"OverlayManager";}};}());(function(){YAHOO.widget.Tooltip=function(P,O){YAHOO.widget.Tooltip.superclass.constructor.call(this,P,O);};var E=YAHOO.lang,N=YAHOO.util.Event,M=YAHOO.util.CustomEvent,C=YAHOO.util.Dom,J=YAHOO.widget.Tooltip,H=YAHOO.env.ua,G=(H.ie&&(H.ie<=6||document.compatMode=="BackCompat")),F,I={"PREVENT_OVERLAP":{key:"preventoverlap",value:true,validator:E.isBoolean,supercedes:["x","y","xy"]},"SHOW_DELAY":{key:"showdelay",value:200,validator:E.isNumber},"AUTO_DISMISS_DELAY":{key:"autodismissdelay",value:5000,validator:E.isNumber},"HIDE_DELAY":{key:"hidedelay",value:250,validator:E.isNumber},"TEXT":{key:"text",suppressEvent:true},"CONTAINER":{key:"container"},"DISABLED":{key:"disabled",value:false,suppressEvent:true}},A={"CONTEXT_MOUSE_OVER":"contextMouseOver","CONTEXT_MOUSE_OUT":"contextMouseOut","CONTEXT_TRIGGER":"contextTrigger"};J.CSS_TOOLTIP="yui-tt";function K(Q,O){var P=this.cfg,R=P.getProperty("width");if(R==O){P.setProperty("width",Q);}}function D(P,O){if("_originalWidth" in this){K.call(this,this._originalWidth,this._forcedWidth);}var Q=document.body,U=this.cfg,T=U.getProperty("width"),R,S;if((!T||T=="auto")&&(U.getProperty("container")!=Q||U.getProperty("x")>=C.getViewportWidth()||U.getProperty("y")>=C.getViewportHeight())){S=this.element.cloneNode(true);S.style.visibility="hidden";S.style.top="0px";S.style.left="0px";Q.appendChild(S);R=(S.offsetWidth+"px");Q.removeChild(S);S=null;U.setProperty("width",R);U.refireEvent("xy");this._originalWidth=T||"";this._forcedWidth=R;}}function B(P,O,Q){this.render(Q);}function L(){N.onDOMReady(B,this.cfg.getProperty("container"),this);}YAHOO.extend(J,YAHOO.widget.Overlay,{init:function(P,O){J.superclass.init.call(this,P);this.beforeInitEvent.fire(J);C.addClass(this.element,J.CSS_TOOLTIP);if(O){this.cfg.applyConfig(O,true);}this.cfg.queueProperty("visible",false);this.cfg.queueProperty("constraintoviewport",true);this.setBody("");this.subscribe("changeContent",D);this.subscribe("init",L);this.subscribe("render",this.onRender);this.initEvent.fire(J);},initEvents:function(){J.superclass.initEvents.call(this);var O=M.LIST;this.contextMouseOverEvent=this.createEvent(A.CONTEXT_MOUSE_OVER);this.contextMouseOverEvent.signature=O;this.contextMouseOutEvent=this.createEvent(A.CONTEXT_MOUSE_OUT);this.contextMouseOutEvent.signature=O;this.contextTriggerEvent=this.createEvent(A.CONTEXT_TRIGGER);this.contextTriggerEvent.signature=O;},initDefaultConfig:function(){J.superclass.initDefaultConfig.call(this);this.cfg.addProperty(I.PREVENT_OVERLAP.key,{value:I.PREVENT_OVERLAP.value,validator:I.PREVENT_OVERLAP.validator,supercedes:I.PREVENT_OVERLAP.supercedes});this.cfg.addProperty(I.SHOW_DELAY.key,{handler:this.configShowDelay,value:200,validator:I.SHOW_DELAY.validator});this.cfg.addProperty(I.AUTO_DISMISS_DELAY.key,{handler:this.configAutoDismissDelay,value:I.AUTO_DISMISS_DELAY.value,validator:I.AUTO_DISMISS_DELAY.validator});this.cfg.addProperty(I.HIDE_DELAY.key,{handler:this.configHideDelay,value:I.HIDE_DELAY.value,validator:I.HIDE_DELAY.validator});this.cfg.addProperty(I.TEXT.key,{handler:this.configText,suppressEvent:I.TEXT.suppressEvent});this.cfg.addProperty(I.CONTAINER.key,{handler:this.configContainer,value:document.body});this.cfg.addProperty(I.DISABLED.key,{handler:this.configContainer,value:I.DISABLED.value,supressEvent:I.DISABLED.suppressEvent});},configText:function(P,O,Q){var R=O[0];if(R){this.setBody(R);}},configContainer:function(Q,P,R){var O=P[0];if(typeof O=="string"){this.cfg.setProperty("container",document.getElementById(O),true);}},_removeEventListeners:function(){var R=this._context,O,Q,P;if(R){O=R.length;if(O>0){P=O-1;do{Q=R[P];N.removeListener(Q,"mouseover",this.onContextMouseOver);N.removeListener(Q,"mousemove",this.onContextMouseMove);N.removeListener(Q,"mouseout",this.onContextMouseOut);}while(P--);}}},configContext:function(T,P,U){var S=P[0],V,O,R,Q;if(S){if(!(S instanceof Array)){if(typeof S=="string"){this.cfg.setProperty("context",[document.getElementById(S)],true);}else{this.cfg.setProperty("context",[S],true);}S=this.cfg.getProperty("context");}this._removeEventListeners();this._context=S;V=this._context;if(V){O=V.length;if(O>0){Q=O-1;do{R=V[Q];N.on(R,"mouseover",this.onContextMouseOver,this);N.on(R,"mousemove",this.onContextMouseMove,this);N.on(R,"mouseout",this.onContextMouseOut,this);}while(Q--);}}}},onContextMouseMove:function(P,O){O.pageX=N.getPageX(P);O.pageY=N.getPageY(P);},onContextMouseOver:function(Q,P){var O=this;if(O.title){P._tempTitle=O.title;O.title="";}if(P.fireEvent("contextMouseOver",O,Q)!==false&&!P.cfg.getProperty("disabled")){if(P.hideProcId){clearTimeout(P.hideProcId);P.hideProcId=null;}N.on(O,"mousemove",P.onContextMouseMove,P);P.showProcId=P.doShow(Q,O);}},onContextMouseOut:function(Q,P){var O=this;if(P._tempTitle){O.title=P._tempTitle;P._tempTitle=null;}if(P.showProcId){clearTimeout(P.showProcId);P.showProcId=null;}if(P.hideProcId){clearTimeout(P.hideProcId);P.hideProcId=null;}P.fireEvent("contextMouseOut",O,Q);P.hideProcId=setTimeout(function(){P.hide();},P.cfg.getProperty("hidedelay"));},doShow:function(Q,O){var R=25,P=this;
if(H.opera&&O.tagName&&O.tagName.toUpperCase()=="A"){R+=12;}return setTimeout(function(){var S=P.cfg.getProperty("text");if(P._tempTitle&&(S===""||YAHOO.lang.isUndefined(S)||YAHOO.lang.isNull(S))){P.setBody(P._tempTitle);}else{P.cfg.refireEvent("text");}P.moveTo(P.pageX,P.pageY+R);if(P.cfg.getProperty("preventoverlap")){P.preventOverlap(P.pageX,P.pageY);}N.removeListener(O,"mousemove",P.onContextMouseMove);P.contextTriggerEvent.fire(O);P.show();P.hideProcId=P.doHide();},this.cfg.getProperty("showdelay"));},doHide:function(){var O=this;return setTimeout(function(){O.hide();},this.cfg.getProperty("autodismissdelay"));},preventOverlap:function(S,R){var O=this.element.offsetHeight,Q=new YAHOO.util.Point(S,R),P=C.getRegion(this.element);P.top-=5;P.left-=5;P.right+=5;P.bottom+=5;if(P.contains(Q)){this.cfg.setProperty("y",(R-O-5));}},onRender:function(S,R){function T(){var W=this.element,V=this.underlay;if(V){V.style.width=(W.offsetWidth+6)+"px";V.style.height=(W.offsetHeight+1)+"px";}}function P(){C.addClass(this.underlay,"yui-tt-shadow-visible");if(H.ie){this.forceUnderlayRedraw();}}function O(){C.removeClass(this.underlay,"yui-tt-shadow-visible");}function U(){var X=this.underlay,W,V,Z,Y;if(!X){W=this.element;V=YAHOO.widget.Module;Z=H.ie;Y=this;if(!F){F=document.createElement("div");F.className="yui-tt-shadow";}X=F.cloneNode(false);W.appendChild(X);this.underlay=X;this._shadow=this.underlay;P.call(this);this.subscribe("beforeShow",P);this.subscribe("hide",O);if(G){window.setTimeout(function(){T.call(Y);},0);this.cfg.subscribeToConfigEvent("width",T);this.cfg.subscribeToConfigEvent("height",T);this.subscribe("changeContent",T);V.textResizeEvent.subscribe(T,this,true);this.subscribe("destroy",function(){V.textResizeEvent.unsubscribe(T,this);});}}}function Q(){U.call(this);this.unsubscribe("beforeShow",Q);}if(this.cfg.getProperty("visible")){U.call(this);}else{this.subscribe("beforeShow",Q);}},forceUnderlayRedraw:function(){var O=this;C.addClass(O.underlay,"yui-force-redraw");setTimeout(function(){C.removeClass(O.underlay,"yui-force-redraw");},0);},destroy:function(){this._removeEventListeners();J.superclass.destroy.call(this);},toString:function(){return"Tooltip "+this.id;}});}());(function(){YAHOO.widget.Panel=function(V,U){YAHOO.widget.Panel.superclass.constructor.call(this,V,U);};var S=null;var E=YAHOO.lang,F=YAHOO.util,A=F.Dom,T=F.Event,M=F.CustomEvent,K=YAHOO.util.KeyListener,I=F.Config,H=YAHOO.widget.Overlay,O=YAHOO.widget.Panel,L=YAHOO.env.ua,P=(L.ie&&(L.ie<=6||document.compatMode=="BackCompat")),G,Q,C,D={"SHOW_MASK":"showMask","HIDE_MASK":"hideMask","DRAG":"drag"},N={"CLOSE":{key:"close",value:true,validator:E.isBoolean,supercedes:["visible"]},"DRAGGABLE":{key:"draggable",value:(F.DD?true:false),validator:E.isBoolean,supercedes:["visible"]},"DRAG_ONLY":{key:"dragonly",value:false,validator:E.isBoolean,supercedes:["draggable"]},"UNDERLAY":{key:"underlay",value:"shadow",supercedes:["visible"]},"MODAL":{key:"modal",value:false,validator:E.isBoolean,supercedes:["visible","zindex"]},"KEY_LISTENERS":{key:"keylisteners",suppressEvent:true,supercedes:["visible"]},"STRINGS":{key:"strings",supercedes:["close"],validator:E.isObject,value:{close:"Close"}}};O.CSS_PANEL="yui-panel";O.CSS_PANEL_CONTAINER="yui-panel-container";O.FOCUSABLE=["a","button","select","textarea","input","iframe"];function J(V,U){if(!this.header&&this.cfg.getProperty("draggable")){this.setHeader("&#160;");}}function R(V,U,W){var Z=W[0],X=W[1],Y=this.cfg,a=Y.getProperty("width");if(a==X){Y.setProperty("width",Z);}this.unsubscribe("hide",R,W);}function B(V,U){var Y,X,W;if(P){Y=this.cfg;X=Y.getProperty("width");if(!X||X=="auto"){W=(this.element.offsetWidth+"px");Y.setProperty("width",W);this.subscribe("hide",R,[(X||""),W]);}}}YAHOO.extend(O,H,{init:function(V,U){O.superclass.init.call(this,V);this.beforeInitEvent.fire(O);A.addClass(this.element,O.CSS_PANEL);this.buildWrapper();if(U){this.cfg.applyConfig(U,true);}this.subscribe("showMask",this._addFocusHandlers);this.subscribe("hideMask",this._removeFocusHandlers);this.subscribe("beforeRender",J);this.subscribe("render",function(){this.setFirstLastFocusable();this.subscribe("changeContent",this.setFirstLastFocusable);});this.subscribe("show",this.focusFirst);this.initEvent.fire(O);},_onElementFocus:function(Z){if(S===this){var Y=T.getTarget(Z),X=document.documentElement,V=(Y!==X&&Y!==window);if(V&&Y!==this.element&&Y!==this.mask&&!A.isAncestor(this.element,Y)){try{if(this.firstElement){this.firstElement.focus();}else{if(this._modalFocus){this._modalFocus.focus();}else{this.innerElement.focus();}}}catch(W){try{if(V&&Y!==document.body){Y.blur();}}catch(U){}}}}},_addFocusHandlers:function(V,U){if(!this.firstElement){if(L.webkit||L.opera){if(!this._modalFocus){this._createHiddenFocusElement();}}else{this.innerElement.tabIndex=0;}}this.setTabLoop(this.firstElement,this.lastElement);T.onFocus(document.documentElement,this._onElementFocus,this,true);S=this;},_createHiddenFocusElement:function(){var U=document.createElement("button");U.style.height="1px";U.style.width="1px";U.style.position="absolute";U.style.left="-10000em";U.style.opacity=0;U.tabIndex=-1;this.innerElement.appendChild(U);this._modalFocus=U;},_removeFocusHandlers:function(V,U){T.removeFocusListener(document.documentElement,this._onElementFocus,this);if(S==this){S=null;}},focusFirst:function(W,U,Y){var V=this.firstElement;if(U&&U[1]){T.stopEvent(U[1]);}if(V){try{V.focus();}catch(X){}}},focusLast:function(W,U,Y){var V=this.lastElement;if(U&&U[1]){T.stopEvent(U[1]);}if(V){try{V.focus();}catch(X){}}},setTabLoop:function(X,Z){var V=this.preventBackTab,W=this.preventTabOut,U=this.showEvent,Y=this.hideEvent;if(V){V.disable();U.unsubscribe(V.enable,V);Y.unsubscribe(V.disable,V);V=this.preventBackTab=null;}if(W){W.disable();U.unsubscribe(W.enable,W);Y.unsubscribe(W.disable,W);W=this.preventTabOut=null;}if(X){this.preventBackTab=new K(X,{shift:true,keys:9},{fn:this.focusLast,scope:this,correctScope:true});V=this.preventBackTab;U.subscribe(V.enable,V,true);
Y.subscribe(V.disable,V,true);}if(Z){this.preventTabOut=new K(Z,{shift:false,keys:9},{fn:this.focusFirst,scope:this,correctScope:true});W=this.preventTabOut;U.subscribe(W.enable,W,true);Y.subscribe(W.disable,W,true);}},getFocusableElements:function(U){U=U||this.innerElement;var X={};for(var W=0;W<O.FOCUSABLE.length;W++){X[O.FOCUSABLE[W]]=true;}function V(Y){if(Y.focus&&Y.type!=="hidden"&&!Y.disabled&&X[Y.tagName.toLowerCase()]){return true;}return false;}return A.getElementsBy(V,null,U);},setFirstLastFocusable:function(){this.firstElement=null;this.lastElement=null;var U=this.getFocusableElements();this.focusableElements=U;if(U.length>0){this.firstElement=U[0];this.lastElement=U[U.length-1];}if(this.cfg.getProperty("modal")){this.setTabLoop(this.firstElement,this.lastElement);}},initEvents:function(){O.superclass.initEvents.call(this);var U=M.LIST;this.showMaskEvent=this.createEvent(D.SHOW_MASK);this.showMaskEvent.signature=U;this.hideMaskEvent=this.createEvent(D.HIDE_MASK);this.hideMaskEvent.signature=U;this.dragEvent=this.createEvent(D.DRAG);this.dragEvent.signature=U;},initDefaultConfig:function(){O.superclass.initDefaultConfig.call(this);this.cfg.addProperty(N.CLOSE.key,{handler:this.configClose,value:N.CLOSE.value,validator:N.CLOSE.validator,supercedes:N.CLOSE.supercedes});this.cfg.addProperty(N.DRAGGABLE.key,{handler:this.configDraggable,value:(F.DD)?true:false,validator:N.DRAGGABLE.validator,supercedes:N.DRAGGABLE.supercedes});this.cfg.addProperty(N.DRAG_ONLY.key,{value:N.DRAG_ONLY.value,validator:N.DRAG_ONLY.validator,supercedes:N.DRAG_ONLY.supercedes});this.cfg.addProperty(N.UNDERLAY.key,{handler:this.configUnderlay,value:N.UNDERLAY.value,supercedes:N.UNDERLAY.supercedes});this.cfg.addProperty(N.MODAL.key,{handler:this.configModal,value:N.MODAL.value,validator:N.MODAL.validator,supercedes:N.MODAL.supercedes});this.cfg.addProperty(N.KEY_LISTENERS.key,{handler:this.configKeyListeners,suppressEvent:N.KEY_LISTENERS.suppressEvent,supercedes:N.KEY_LISTENERS.supercedes});this.cfg.addProperty(N.STRINGS.key,{value:N.STRINGS.value,handler:this.configStrings,validator:N.STRINGS.validator,supercedes:N.STRINGS.supercedes});},configClose:function(X,V,Y){var Z=V[0],W=this.close,U=this.cfg.getProperty("strings");if(Z){if(!W){if(!C){C=document.createElement("a");C.className="container-close";C.href="#";}W=C.cloneNode(true);this.innerElement.appendChild(W);W.innerHTML=(U&&U.close)?U.close:"&#160;";T.on(W,"click",this._doClose,this,true);this.close=W;}else{W.style.display="block";}}else{if(W){W.style.display="none";}}},_doClose:function(U){T.preventDefault(U);this.hide();},configDraggable:function(V,U,W){var X=U[0];if(X){if(!F.DD){this.cfg.setProperty("draggable",false);return;}if(this.header){A.setStyle(this.header,"cursor","move");this.registerDragDrop();}this.subscribe("beforeShow",B);}else{if(this.dd){this.dd.unreg();}if(this.header){A.setStyle(this.header,"cursor","auto");}this.unsubscribe("beforeShow",B);}},configUnderlay:function(d,c,Z){var b=(this.platform=="mac"&&L.gecko),e=c[0].toLowerCase(),V=this.underlay,W=this.element;function X(){var f=false;if(!V){if(!Q){Q=document.createElement("div");Q.className="underlay";}V=Q.cloneNode(false);this.element.appendChild(V);this.underlay=V;if(P){this.sizeUnderlay();this.cfg.subscribeToConfigEvent("width",this.sizeUnderlay);this.cfg.subscribeToConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.subscribe(this.sizeUnderlay);YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay,this,true);}if(L.webkit&&L.webkit<420){this.changeContentEvent.subscribe(this.forceUnderlayRedraw);}f=true;}}function a(){var f=X.call(this);if(!f&&P){this.sizeUnderlay();}this._underlayDeferred=false;this.beforeShowEvent.unsubscribe(a);}function Y(){if(this._underlayDeferred){this.beforeShowEvent.unsubscribe(a);this._underlayDeferred=false;}if(V){this.cfg.unsubscribeFromConfigEvent("width",this.sizeUnderlay);this.cfg.unsubscribeFromConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.forceUnderlayRedraw);YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay,this,true);this.element.removeChild(V);this.underlay=null;}}switch(e){case"shadow":A.removeClass(W,"matte");A.addClass(W,"shadow");break;case"matte":if(!b){Y.call(this);}A.removeClass(W,"shadow");A.addClass(W,"matte");break;default:if(!b){Y.call(this);}A.removeClass(W,"shadow");A.removeClass(W,"matte");break;}if((e=="shadow")||(b&&!V)){if(this.cfg.getProperty("visible")){var U=X.call(this);if(!U&&P){this.sizeUnderlay();}}else{if(!this._underlayDeferred){this.beforeShowEvent.subscribe(a);this._underlayDeferred=true;}}}},configModal:function(V,U,X){var W=U[0];if(W){if(!this._hasModalityEventListeners){this.subscribe("beforeShow",this.buildMask);this.subscribe("beforeShow",this.bringToTop);this.subscribe("beforeShow",this.showMask);this.subscribe("hide",this.hideMask);H.windowResizeEvent.subscribe(this.sizeMask,this,true);this._hasModalityEventListeners=true;}}else{if(this._hasModalityEventListeners){if(this.cfg.getProperty("visible")){this.hideMask();this.removeMask();}this.unsubscribe("beforeShow",this.buildMask);this.unsubscribe("beforeShow",this.bringToTop);this.unsubscribe("beforeShow",this.showMask);this.unsubscribe("hide",this.hideMask);H.windowResizeEvent.unsubscribe(this.sizeMask,this);this._hasModalityEventListeners=false;}}},removeMask:function(){var V=this.mask,U;if(V){this.hideMask();U=V.parentNode;if(U){U.removeChild(V);}this.mask=null;}},configKeyListeners:function(X,U,a){var W=U[0],Z,Y,V;if(W){if(W instanceof Array){Y=W.length;for(V=0;V<Y;V++){Z=W[V];if(!I.alreadySubscribed(this.showEvent,Z.enable,Z)){this.showEvent.subscribe(Z.enable,Z,true);}if(!I.alreadySubscribed(this.hideEvent,Z.disable,Z)){this.hideEvent.subscribe(Z.disable,Z,true);this.destroyEvent.subscribe(Z.disable,Z,true);}}}else{if(!I.alreadySubscribed(this.showEvent,W.enable,W)){this.showEvent.subscribe(W.enable,W,true);}if(!I.alreadySubscribed(this.hideEvent,W.disable,W)){this.hideEvent.subscribe(W.disable,W,true);
this.destroyEvent.subscribe(W.disable,W,true);}}}},configStrings:function(V,U,W){var X=E.merge(N.STRINGS.value,U[0]);this.cfg.setProperty(N.STRINGS.key,X,true);},configHeight:function(X,V,Y){var U=V[0],W=this.innerElement;A.setStyle(W,"height",U);this.cfg.refireEvent("iframe");},_autoFillOnHeightChange:function(X,V,W){O.superclass._autoFillOnHeightChange.apply(this,arguments);if(P){var U=this;setTimeout(function(){U.sizeUnderlay();},0);}},configWidth:function(X,U,Y){var W=U[0],V=this.innerElement;A.setStyle(V,"width",W);this.cfg.refireEvent("iframe");},configzIndex:function(V,U,X){O.superclass.configzIndex.call(this,V,U,X);if(this.mask||this.cfg.getProperty("modal")===true){var W=A.getStyle(this.element,"zIndex");if(!W||isNaN(W)){W=0;}if(W===0){this.cfg.setProperty("zIndex",1);}else{this.stackMask();}}},buildWrapper:function(){var W=this.element.parentNode,U=this.element,V=document.createElement("div");V.className=O.CSS_PANEL_CONTAINER;V.id=U.id+"_c";if(W){W.insertBefore(V,U);}V.appendChild(U);this.element=V;this.innerElement=U;A.setStyle(this.innerElement,"visibility","inherit");},sizeUnderlay:function(){var V=this.underlay,U;if(V){U=this.element;V.style.width=U.offsetWidth+"px";V.style.height=U.offsetHeight+"px";}},registerDragDrop:function(){var V=this;if(this.header){if(!F.DD){return;}var U=(this.cfg.getProperty("dragonly")===true);this.dd=new F.DD(this.element.id,this.id,{dragOnly:U});if(!this.header.id){this.header.id=this.id+"_h";}this.dd.startDrag=function(){var X,Z,W,c,b,a;if(YAHOO.env.ua.ie==6){A.addClass(V.element,"drag");}if(V.cfg.getProperty("constraintoviewport")){var Y=H.VIEWPORT_OFFSET;X=V.element.offsetHeight;Z=V.element.offsetWidth;W=A.getViewportWidth();c=A.getViewportHeight();b=A.getDocumentScrollLeft();a=A.getDocumentScrollTop();if(X+Y<c){this.minY=a+Y;this.maxY=a+c-X-Y;}else{this.minY=a+Y;this.maxY=a+Y;}if(Z+Y<W){this.minX=b+Y;this.maxX=b+W-Z-Y;}else{this.minX=b+Y;this.maxX=b+Y;}this.constrainX=true;this.constrainY=true;}else{this.constrainX=false;this.constrainY=false;}V.dragEvent.fire("startDrag",arguments);};this.dd.onDrag=function(){V.syncPosition();V.cfg.refireEvent("iframe");if(this.platform=="mac"&&YAHOO.env.ua.gecko){this.showMacGeckoScrollbars();}V.dragEvent.fire("onDrag",arguments);};this.dd.endDrag=function(){if(YAHOO.env.ua.ie==6){A.removeClass(V.element,"drag");}V.dragEvent.fire("endDrag",arguments);V.moveEvent.fire(V.cfg.getProperty("xy"));};this.dd.setHandleElId(this.header.id);this.dd.addInvalidHandleType("INPUT");this.dd.addInvalidHandleType("SELECT");this.dd.addInvalidHandleType("TEXTAREA");}},buildMask:function(){var U=this.mask;if(!U){if(!G){G=document.createElement("div");G.className="mask";G.innerHTML="&#160;";}U=G.cloneNode(true);U.id=this.id+"_mask";document.body.insertBefore(U,document.body.firstChild);this.mask=U;if(YAHOO.env.ua.gecko&&this.platform=="mac"){A.addClass(this.mask,"block-scrollbars");}this.stackMask();}},hideMask:function(){if(this.cfg.getProperty("modal")&&this.mask){this.mask.style.display="none";A.removeClass(document.body,"masked");this.hideMaskEvent.fire();}},showMask:function(){if(this.cfg.getProperty("modal")&&this.mask){A.addClass(document.body,"masked");this.sizeMask();this.mask.style.display="block";this.showMaskEvent.fire();}},sizeMask:function(){if(this.mask){var V=this.mask,W=A.getViewportWidth(),U=A.getViewportHeight();if(V.offsetHeight>U){V.style.height=U+"px";}if(V.offsetWidth>W){V.style.width=W+"px";}V.style.height=A.getDocumentHeight()+"px";V.style.width=A.getDocumentWidth()+"px";}},stackMask:function(){if(this.mask){var U=A.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(U)&&!isNaN(U)){A.setStyle(this.mask,"zIndex",U-1);}}},render:function(U){return O.superclass.render.call(this,U,this.innerElement);},destroy:function(){H.windowResizeEvent.unsubscribe(this.sizeMask,this);this.removeMask();if(this.close){T.purgeElement(this.close);}O.superclass.destroy.call(this);},forceUnderlayRedraw:function(){var U=this.underlay;A.addClass(U,"yui-force-redraw");setTimeout(function(){A.removeClass(U,"yui-force-redraw");},0);},toString:function(){return"Panel "+this.id;}});}());(function(){YAHOO.widget.Dialog=function(J,I){YAHOO.widget.Dialog.superclass.constructor.call(this,J,I);};var B=YAHOO.util.Event,G=YAHOO.util.CustomEvent,E=YAHOO.util.Dom,A=YAHOO.widget.Dialog,F=YAHOO.lang,H={"BEFORE_SUBMIT":"beforeSubmit","SUBMIT":"submit","MANUAL_SUBMIT":"manualSubmit","ASYNC_SUBMIT":"asyncSubmit","FORM_SUBMIT":"formSubmit","CANCEL":"cancel"},C={"POST_METHOD":{key:"postmethod",value:"async"},"POST_DATA":{key:"postdata",value:null},"BUTTONS":{key:"buttons",value:"none",supercedes:["visible"]},"HIDEAFTERSUBMIT":{key:"hideaftersubmit",value:true}};A.CSS_DIALOG="yui-dialog";function D(){var L=this._aButtons,J,K,I;if(F.isArray(L)){J=L.length;if(J>0){I=J-1;do{K=L[I];if(YAHOO.widget.Button&&K instanceof YAHOO.widget.Button){K.destroy();}else{if(K.tagName.toUpperCase()=="BUTTON"){B.purgeElement(K);B.purgeElement(K,false);}}}while(I--);}}}YAHOO.extend(A,YAHOO.widget.Panel,{form:null,initDefaultConfig:function(){A.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};this.cfg.addProperty(C.POST_METHOD.key,{handler:this.configPostMethod,value:C.POST_METHOD.value,validator:function(I){if(I!="form"&&I!="async"&&I!="none"&&I!="manual"){return false;}else{return true;}}});this.cfg.addProperty(C.POST_DATA.key,{value:C.POST_DATA.value});this.cfg.addProperty(C.HIDEAFTERSUBMIT.key,{value:C.HIDEAFTERSUBMIT.value});this.cfg.addProperty(C.BUTTONS.key,{handler:this.configButtons,value:C.BUTTONS.value,supercedes:C.BUTTONS.supercedes});},initEvents:function(){A.superclass.initEvents.call(this);var I=G.LIST;this.beforeSubmitEvent=this.createEvent(H.BEFORE_SUBMIT);this.beforeSubmitEvent.signature=I;this.submitEvent=this.createEvent(H.SUBMIT);this.submitEvent.signature=I;this.manualSubmitEvent=this.createEvent(H.MANUAL_SUBMIT);this.manualSubmitEvent.signature=I;this.asyncSubmitEvent=this.createEvent(H.ASYNC_SUBMIT);
this.asyncSubmitEvent.signature=I;this.formSubmitEvent=this.createEvent(H.FORM_SUBMIT);this.formSubmitEvent.signature=I;this.cancelEvent=this.createEvent(H.CANCEL);this.cancelEvent.signature=I;},init:function(J,I){A.superclass.init.call(this,J);this.beforeInitEvent.fire(A);E.addClass(this.element,A.CSS_DIALOG);this.cfg.setProperty("visible",false);if(I){this.cfg.applyConfig(I,true);}this.showEvent.subscribe(this.focusFirst,this,true);this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.subscribe("changeBody",this.registerForm);this.initEvent.fire(A);},doSubmit:function(){var P=YAHOO.util.Connect,Q=this.form,K=false,N=false,R,M,L,I;switch(this.cfg.getProperty("postmethod")){case"async":R=Q.elements;M=R.length;if(M>0){L=M-1;do{if(R[L].type=="file"){K=true;break;}}while(L--);}if(K&&YAHOO.env.ua.ie&&this.isSecure){N=true;}I=this._getFormAttributes(Q);P.setForm(Q,K,N);var J=this.cfg.getProperty("postdata");var O=P.asyncRequest(I.method,I.action,this.callback,J);this.asyncSubmitEvent.fire(O);break;case"form":Q.submit();this.formSubmitEvent.fire();break;case"none":case"manual":this.manualSubmitEvent.fire();break;}},_getFormAttributes:function(K){var I={method:null,action:null};if(K){if(K.getAttributeNode){var J=K.getAttributeNode("action");var L=K.getAttributeNode("method");if(J){I.action=J.value;}if(L){I.method=L.value;}}else{I.action=K.getAttribute("action");I.method=K.getAttribute("method");}}I.method=(F.isString(I.method)?I.method:"POST").toUpperCase();I.action=F.isString(I.action)?I.action:"";return I;},registerForm:function(){var I=this.element.getElementsByTagName("form")[0];if(this.form){if(this.form==I&&E.isAncestor(this.element,this.form)){return;}else{B.purgeElement(this.form);this.form=null;}}if(!I){I=document.createElement("form");I.name="frm_"+this.id;this.body.appendChild(I);}if(I){this.form=I;B.on(I,"submit",this._submitHandler,this,true);}},_submitHandler:function(I){B.stopEvent(I);this.submit();this.form.blur();},setTabLoop:function(I,J){I=I||this.firstButton;J=this.lastButton||J;A.superclass.setTabLoop.call(this,I,J);},setFirstLastFocusable:function(){A.superclass.setFirstLastFocusable.call(this);var J,I,K,L=this.focusableElements;this.firstFormElement=null;this.lastFormElement=null;if(this.form&&L&&L.length>0){I=L.length;for(J=0;J<I;++J){K=L[J];if(this.form===K.form){this.firstFormElement=K;break;}}for(J=I-1;J>=0;--J){K=L[J];if(this.form===K.form){this.lastFormElement=K;break;}}}},configClose:function(J,I,K){A.superclass.configClose.apply(this,arguments);},_doClose:function(I){B.preventDefault(I);this.cancel();},configButtons:function(S,R,M){var N=YAHOO.widget.Button,U=R[0],K=this.innerElement,T,P,J,Q,O,I,L;D.call(this);this._aButtons=null;if(F.isArray(U)){O=document.createElement("span");O.className="button-group";Q=U.length;this._aButtons=[];this.defaultHtmlButton=null;for(L=0;L<Q;L++){T=U[L];if(N){J=new N({label:T.text});J.appendTo(O);P=J.get("element");if(T.isDefault){J.addClass("default");this.defaultHtmlButton=P;}if(F.isFunction(T.handler)){J.set("onclick",{fn:T.handler,obj:this,scope:this});}else{if(F.isObject(T.handler)&&F.isFunction(T.handler.fn)){J.set("onclick",{fn:T.handler.fn,obj:((!F.isUndefined(T.handler.obj))?T.handler.obj:this),scope:(T.handler.scope||this)});}}this._aButtons[this._aButtons.length]=J;}else{P=document.createElement("button");P.setAttribute("type","button");if(T.isDefault){P.className="default";this.defaultHtmlButton=P;}P.innerHTML=T.text;if(F.isFunction(T.handler)){B.on(P,"click",T.handler,this,true);}else{if(F.isObject(T.handler)&&F.isFunction(T.handler.fn)){B.on(P,"click",T.handler.fn,((!F.isUndefined(T.handler.obj))?T.handler.obj:this),(T.handler.scope||this));}}O.appendChild(P);this._aButtons[this._aButtons.length]=P;}T.htmlButton=P;if(L===0){this.firstButton=P;}if(L==(Q-1)){this.lastButton=P;}}this.setFooter(O);I=this.footer;if(E.inDocument(this.element)&&!E.isAncestor(K,I)){K.appendChild(I);}this.buttonSpan=O;}else{O=this.buttonSpan;I=this.footer;if(O&&I){I.removeChild(O);this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null;}}this.changeContentEvent.fire();},getButtons:function(){return this._aButtons||null;},focusFirst:function(K,I,M){var J=this.firstFormElement;if(I&&I[1]){B.stopEvent(I[1]);}if(J){try{J.focus();}catch(L){}}else{if(this.defaultHtmlButton){this.focusDefaultButton();}else{this.focusFirstButton();}}},focusLast:function(K,I,M){var N=this.cfg.getProperty("buttons"),J=this.lastFormElement;if(I&&I[1]){B.stopEvent(I[1]);}if(N&&F.isArray(N)){this.focusLastButton();}else{if(J){try{J.focus();}catch(L){}}}},_getButton:function(J){var I=YAHOO.widget.Button;if(I&&J&&J.nodeName&&J.id){J=I.getButton(J.id)||J;}return J;},focusDefaultButton:function(){var I=this._getButton(this.defaultHtmlButton);if(I){try{I.focus();}catch(J){}}},blurButtons:function(){var N=this.cfg.getProperty("buttons"),K,M,J,I;if(N&&F.isArray(N)){K=N.length;if(K>0){I=(K-1);do{M=N[I];if(M){J=this._getButton(M.htmlButton);if(J){try{J.blur();}catch(L){}}}}while(I--);}}},focusFirstButton:function(){var L=this.cfg.getProperty("buttons"),K,I;if(L&&F.isArray(L)){K=L[0];if(K){I=this._getButton(K.htmlButton);if(I){try{I.focus();}catch(J){}}}}},focusLastButton:function(){var M=this.cfg.getProperty("buttons"),J,L,I;if(M&&F.isArray(M)){J=M.length;if(J>0){L=M[(J-1)];if(L){I=this._getButton(L.htmlButton);if(I){try{I.focus();}catch(K){}}}}}},configPostMethod:function(J,I,K){this.registerForm();},validate:function(){return true;},submit:function(){if(this.validate()){this.beforeSubmitEvent.fire();this.doSubmit();this.submitEvent.fire();if(this.cfg.getProperty("hideaftersubmit")){this.hide();}return true;}else{return false;}},cancel:function(){this.cancelEvent.fire();this.hide();},getData:function(){var Y=this.form,K,R,U,M,S,P,O,J,V,L,W,Z,I,N,a,X,T;function Q(c){var b=c.tagName.toUpperCase();return((b=="INPUT"||b=="TEXTAREA"||b=="SELECT")&&c.name==M);}if(Y){K=Y.elements;R=K.length;U={};for(X=0;X<R;X++){M=K[X].name;S=E.getElementsBy(Q,"*",Y);
P=S.length;if(P>0){if(P==1){S=S[0];O=S.type;J=S.tagName.toUpperCase();switch(J){case"INPUT":if(O=="checkbox"){U[M]=S.checked;}else{if(O!="radio"){U[M]=S.value;}}break;case"TEXTAREA":U[M]=S.value;break;case"SELECT":V=S.options;L=V.length;W=[];for(T=0;T<L;T++){Z=V[T];if(Z.selected){I=Z.value;if(!I||I===""){I=Z.text;}W[W.length]=I;}}U[M]=W;break;}}else{O=S[0].type;switch(O){case"radio":for(T=0;T<P;T++){N=S[T];if(N.checked){U[M]=N.value;break;}}break;case"checkbox":W=[];for(T=0;T<P;T++){a=S[T];if(a.checked){W[W.length]=a.value;}}U[M]=W;break;}}}}}return U;},destroy:function(){D.call(this);this._aButtons=null;var I=this.element.getElementsByTagName("form"),J;if(I.length>0){J=I[0];if(J){B.purgeElement(J);if(J.parentNode){J.parentNode.removeChild(J);}this.form=null;}}A.superclass.destroy.call(this);},toString:function(){return"Dialog "+this.id;}});}());(function(){YAHOO.widget.SimpleDialog=function(E,D){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,E,D);};var C=YAHOO.util.Dom,B=YAHOO.widget.SimpleDialog,A={"ICON":{key:"icon",value:"none",suppressEvent:true},"TEXT":{key:"text",value:"",suppressEvent:true,supercedes:["icon"]}};B.ICON_BLOCK="blckicon";B.ICON_ALARM="alrticon";B.ICON_HELP="hlpicon";B.ICON_INFO="infoicon";B.ICON_WARN="warnicon";B.ICON_TIP="tipicon";B.ICON_CSS_CLASSNAME="yui-icon";B.CSS_SIMPLEDIALOG="yui-simple-dialog";YAHOO.extend(B,YAHOO.widget.Dialog,{initDefaultConfig:function(){B.superclass.initDefaultConfig.call(this);this.cfg.addProperty(A.ICON.key,{handler:this.configIcon,value:A.ICON.value,suppressEvent:A.ICON.suppressEvent});this.cfg.addProperty(A.TEXT.key,{handler:this.configText,value:A.TEXT.value,suppressEvent:A.TEXT.suppressEvent,supercedes:A.TEXT.supercedes});},init:function(E,D){B.superclass.init.call(this,E);this.beforeInitEvent.fire(B);C.addClass(this.element,B.CSS_SIMPLEDIALOG);this.cfg.queueProperty("postmethod","manual");if(D){this.cfg.applyConfig(D,true);}this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody("");}},this,true);this.initEvent.fire(B);},registerForm:function(){B.superclass.registerForm.call(this);this.form.innerHTML+='<input type="hidden" name="'+this.id+'" value=""/>';},configIcon:function(F,E,J){var K=E[0],D=this.body,I=B.ICON_CSS_CLASSNAME,H,G;if(K&&K!="none"){H=C.getElementsByClassName(I,"*",D);if(H){G=H.parentNode;if(G){G.removeChild(H);H=null;}}if(K.indexOf(".")==-1){H=document.createElement("span");H.className=(I+" "+K);H.innerHTML="&#160;";}else{H=document.createElement("img");H.src=(this.imageRoot+K);H.className=I;}if(H){D.insertBefore(H,D.firstChild);}}},configText:function(E,D,F){var G=D[0];if(G){this.setBody(G);this.cfg.refireEvent("icon");}},toString:function(){return"SimpleDialog "+this.id;}});}());(function(){YAHOO.widget.ContainerEffect=function(E,H,G,D,F){if(!F){F=YAHOO.util.Anim;}this.overlay=E;this.attrIn=H;this.attrOut=G;this.targetElement=D||E.element;this.animClass=F;};var B=YAHOO.util.Dom,C=YAHOO.util.CustomEvent,A=YAHOO.widget.ContainerEffect;A.FADE=function(D,F){var G=YAHOO.util.Easing,I={attributes:{opacity:{from:0,to:1}},duration:F,method:G.easeIn},E={attributes:{opacity:{to:0}},duration:F,method:G.easeOut},H=new A(D,I,E,D.element);H.handleUnderlayStart=function(){var K=this.overlay.underlay;if(K&&YAHOO.env.ua.ie){var J=(K.filters&&K.filters.length>0);if(J){B.addClass(D.element,"yui-effect-fade");}}};H.handleUnderlayComplete=function(){var J=this.overlay.underlay;if(J&&YAHOO.env.ua.ie){B.removeClass(D.element,"yui-effect-fade");}};H.handleStartAnimateIn=function(K,J,L){B.addClass(L.overlay.element,"hide-select");if(!L.overlay.underlay){L.overlay.cfg.refireEvent("underlay");}L.handleUnderlayStart();L.overlay._setDomVisibility(true);B.setStyle(L.overlay.element,"opacity",0);};H.handleCompleteAnimateIn=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateInCompleteEvent.fire();};H.handleStartAnimateOut=function(K,J,L){B.addClass(L.overlay.element,"hide-select");L.handleUnderlayStart();};H.handleCompleteAnimateOut=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.overlay._setDomVisibility(false);B.setStyle(L.overlay.element,"opacity",1);L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateOutCompleteEvent.fire();};H.init();return H;};A.SLIDE=function(F,D){var I=YAHOO.util.Easing,L=F.cfg.getProperty("x")||B.getX(F.element),K=F.cfg.getProperty("y")||B.getY(F.element),M=B.getClientWidth(),H=F.element.offsetWidth,J={attributes:{points:{to:[L,K]}},duration:D,method:I.easeIn},E={attributes:{points:{to:[(M+25),K]}},duration:D,method:I.easeOut},G=new A(F,J,E,F.element,YAHOO.util.Motion);G.handleStartAnimateIn=function(O,N,P){P.overlay.element.style.left=((-25)-H)+"px";P.overlay.element.style.top=K+"px";};G.handleTweenAnimateIn=function(Q,P,R){var S=B.getXY(R.overlay.element),O=S[0],N=S[1];if(B.getStyle(R.overlay.element,"visibility")=="hidden"&&O<L){R.overlay._setDomVisibility(true);}R.overlay.cfg.setProperty("xy",[O,N],true);R.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateIn=function(O,N,P){P.overlay.cfg.setProperty("xy",[L,K],true);P.startX=L;P.startY=K;P.overlay.cfg.refireEvent("iframe");P.animateInCompleteEvent.fire();};G.handleStartAnimateOut=function(O,N,R){var P=B.getViewportWidth(),S=B.getXY(R.overlay.element),Q=S[1];R.animOut.attributes.points.to=[(P+25),Q];};G.handleTweenAnimateOut=function(P,O,Q){var S=B.getXY(Q.overlay.element),N=S[0],R=S[1];Q.overlay.cfg.setProperty("xy",[N,R],true);Q.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateOut=function(O,N,P){P.overlay._setDomVisibility(false);P.overlay.cfg.setProperty("xy",[L,K]);P.animateOutCompleteEvent.fire();};G.init();return G;};A.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent("beforeAnimateIn");this.beforeAnimateInEvent.signature=C.LIST;this.beforeAnimateOutEvent=this.createEvent("beforeAnimateOut");
this.beforeAnimateOutEvent.signature=C.LIST;this.animateInCompleteEvent=this.createEvent("animateInComplete");this.animateInCompleteEvent.signature=C.LIST;this.animateOutCompleteEvent=this.createEvent("animateOutComplete");this.animateOutCompleteEvent.signature=C.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);},animateIn:function(){this.beforeAnimateInEvent.fire();this.animIn.animate();},animateOut:function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();},handleStartAnimateIn:function(E,D,F){},handleTweenAnimateIn:function(E,D,F){},handleCompleteAnimateIn:function(E,D,F){},handleStartAnimateOut:function(E,D,F){},handleTweenAnimateOut:function(E,D,F){},handleCompleteAnimateOut:function(E,D,F){},toString:function(){var D="ContainerEffect";if(this.overlay){D+=" ["+this.overlay.toString()+"]";}return D;}};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);})();YAHOO.register("container",YAHOO.widget.Module,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/Math/Math.uuid-min.js */
/*
File: Math.uuid.js
Version: 1.3
Change History:
  v1.0 - first release
  v1.1 - less code and 2x performance boost (by minimizing calls to Math.random())
  v1.2 - Add support for generating non-standard uuids of arbitrary length
  v1.3 - Fixed IE7 bug (can't use []'s to access string chars.  Thanks, Brian R.)
  v1.4 - Changed method to be "Math.uuid". Added support for radix argument.  Use module pattern for better encapsulation.

Latest version:   http://www.broofa.com/Tools/Math.uuid.js
Information:      http://www.broofa.com/blog/?p=151
Contact:          robert@broofa.com
----
Copyright (c) 2008, Robert Kieffer
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    * Neither the name of Robert Kieffer nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
Math.uuid=(function(){var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return function(b,f){var h=a,e=[],d=Math.random;f=f||h.length;if(b){for(var c=0;c<b;c++){e[c]=h[0|d()*f];}}else{var g;e[8]=e[13]=e[18]=e[23]="-";e[14]="4";for(var c=0;c<36;c++){if(!e[c]){g=0|d()*16;e[c]=h[(c==19)?(g&3)|8:g&15];}}}return e.join("");};})();var randomUUID=Math.uuid;
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/dragdrop/dragdrop-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event,B=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var C=document.createElement("div");C.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(C,document.body.firstChild);}else{document.body.appendChild(C);}C.style.display="none";C.style.backgroundColor="red";C.style.position="absolute";C.style.zIndex="99999";B.setStyle(C,"opacity","0");this._shim=C;A.on(C,"mouseup",this.handleMouseUp,this,true);A.on(C,"mousemove",this.handleMouseMove,this,true);A.on(window,"scroll",this._sizeShim,this,true);},_sizeShim:function(){if(this._shimActive){var C=this._shim;C.style.height=B.getDocumentHeight()+"px";C.style.width=B.getDocumentWidth()+"px";C.style.top="0";C.style.left="0";}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim();}this._shimActive=true;var C=this._shim,D="0";if(this._debugShim){D=".5";}B.setStyle(C,"opacity",D);this._sizeShim();C.style.display="block";}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false;},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(E,D){for(var F in this.ids){for(var C in this.ids[F]){var G=this.ids[F][C];if(!this.isTypeOfDD(G)){continue;}G[E].apply(G,D);}}},_onLoad:function(){this.init();A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true);},_onResize:function(C){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(D,C){if(!this.initialized){this.init();}if(!this.ids[C]){this.ids[C]={};}this.ids[C][D.id]=D;},removeDDFromGroup:function(E,C){if(!this.ids[C]){this.ids[C]={};}var D=this.ids[C];if(D&&D[E.id]){delete D[E.id];}},_remove:function(E){for(var D in E.groups){if(D){var C=this.ids[D];if(C&&C[E.id]){delete C[E.id];}}}delete this.handleIds[E.id];},regHandle:function(D,C){if(!this.handleIds[D]){this.handleIds[D]={};}this.handleIds[D][C]=C;},isDragDrop:function(C){return(this.getDDById(C))?true:false;},getRelated:function(H,D){var G=[];for(var F in H.groups){for(var E in this.ids[F]){var C=this.ids[F][E];if(!this.isTypeOfDD(C)){continue;}if(!D||C.isTarget){G[G.length]=C;}}}return G;},isLegalTarget:function(G,F){var D=this.getRelated(G,true);for(var E=0,C=D.length;E<C;++E){if(D[E].id==F.id){return true;}}return false;},isTypeOfDD:function(C){return(C&&C.__ygDragDrop);},isHandle:function(D,C){return(this.handleIds[D]&&this.handleIds[D][C]);},getDDById:function(D){for(var C in this.ids){if(this.ids[C][D]){return this.ids[C][D];}}return null;},handleMouseDown:function(E,D){this.currentTarget=YAHOO.util.Event.getTarget(E);this.dragCurrent=D;var C=D.getEl();this.startX=YAHOO.util.Event.getPageX(E);this.startY=YAHOO.util.Event.getPageY(E);this.deltaX=this.startX-C.offsetLeft;this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var F=YAHOO.util.DDM;F.startDrag(F.startX,F.startY);F.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(C,E){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true;}this._activateShim();clearTimeout(this.clickTimeout);var D=this.dragCurrent;if(D&&D.events.b4StartDrag){D.b4StartDrag(C,E);D.fireEvent("b4StartDragEvent",{x:C,y:E});}if(D&&D.events.startDrag){D.startDrag(C,E);D.fireEvent("startDragEvent",{x:C,y:E});}this.dragThreshMet=true;},handleMouseUp:function(C){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(C);}this.fromTimeout=false;this.fireEvents(C,true);}else{}this.stopDrag(C);this.stopEvent(C);}},stopEvent:function(C){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(C);}if(this.preventDefault){YAHOO.util.Event.preventDefault(C);}},stopDrag:function(E,D){var C=this.dragCurrent;if(C&&!D){if(this.dragThreshMet){if(C.events.b4EndDrag){C.b4EndDrag(E);C.fireEvent("b4EndDragEvent",{e:E});}if(C.events.endDrag){C.endDrag(E);C.fireEvent("endDragEvent",{e:E});}}if(C.events.mouseUp){C.onMouseUp(E);C.fireEvent("mouseUpEvent",{e:E});}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false;}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(F){var C=this.dragCurrent;if(C){if(YAHOO.util.Event.isIE&&!F.button){this.stopEvent(F);return this.handleMouseUp(F);}else{if(F.clientX<0||F.clientY<0){}}if(!this.dragThreshMet){var E=Math.abs(this.startX-YAHOO.util.Event.getPageX(F));var D=Math.abs(this.startY-YAHOO.util.Event.getPageY(F));if(E>this.clickPixelThresh||D>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(C&&C.events.b4Drag){C.b4Drag(F);C.fireEvent("b4DragEvent",{e:F});}if(C&&C.events.drag){C.onDrag(F);C.fireEvent("dragEvent",{e:F});}if(C){this.fireEvents(F,false);}}this.stopEvent(F);}},fireEvents:function(V,L){var a=this.dragCurrent;if(!a||a.isLocked()||a.dragOnly){return;}var N=YAHOO.util.Event.getPageX(V),M=YAHOO.util.Event.getPageY(V),P=new YAHOO.util.Point(N,M),K=a.getTargetCoord(P.x,P.y),F=a.getDragEl(),E=["out","over","drop","enter"],U=new YAHOO.util.Region(K.y,K.x+F.offsetWidth,K.y+F.offsetHeight,K.x),I=[],D={},Q=[],c={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var S in this.dragOvers){var d=this.dragOvers[S];if(!this.isTypeOfDD(d)){continue;
}if(!this.isOverTarget(P,d,this.mode,U)){c.outEvts.push(d);}I[S]=true;delete this.dragOvers[S];}for(var R in a.groups){if("string"!=typeof R){continue;}for(S in this.ids[R]){var G=this.ids[R][S];if(!this.isTypeOfDD(G)){continue;}if(G.isTarget&&!G.isLocked()&&G!=a){if(this.isOverTarget(P,G,this.mode,U)){D[R]=true;if(L){c.dropEvts.push(G);}else{if(!I[G.id]){c.enterEvts.push(G);}else{c.overEvts.push(G);}this.dragOvers[G.id]=G;}}}}}this.interactionInfo={out:c.outEvts,enter:c.enterEvts,over:c.overEvts,drop:c.dropEvts,point:P,draggedRegion:U,sourceRegion:this.locationCache[a.id],validDrop:L};for(var C in D){Q.push(C);}if(L&&!c.dropEvts.length){this.interactionInfo.validDrop=false;if(a.events.invalidDrop){a.onInvalidDrop(V);a.fireEvent("invalidDropEvent",{e:V});}}for(S=0;S<E.length;S++){var Y=null;if(c[E[S]+"Evts"]){Y=c[E[S]+"Evts"];}if(Y&&Y.length){var H=E[S].charAt(0).toUpperCase()+E[S].substr(1),X="onDrag"+H,J="b4Drag"+H,O="drag"+H+"Event",W="drag"+H;if(this.mode){if(a.events[J]){a[J](V,Y,Q);a.fireEvent(J+"Event",{event:V,info:Y,group:Q});}if(a.events[W]){a[X](V,Y,Q);a.fireEvent(O,{event:V,info:Y,group:Q});}}else{for(var Z=0,T=Y.length;Z<T;++Z){if(a.events[J]){a[J](V,Y[Z].id,Q[0]);a.fireEvent(J+"Event",{event:V,info:Y[Z].id,group:Q[0]});}if(a.events[W]){a[X](V,Y[Z].id,Q[0]);a.fireEvent(O,{event:V,info:Y[Z].id,group:Q[0]});}}}}}},getBestMatch:function(E){var G=null;var D=E.length;if(D==1){G=E[0];}else{for(var F=0;F<D;++F){var C=E[F];if(this.mode==this.INTERSECT&&C.cursorIsOver){G=C;break;}else{if(!G||!G.overlap||(C.overlap&&G.overlap.getArea()<C.overlap.getArea())){G=C;}}}}return G;},refreshCache:function(D){var F=D||this.ids;for(var C in F){if("string"!=typeof C){continue;}for(var E in this.ids[C]){var G=this.ids[C][E];if(this.isTypeOfDD(G)){var H=this.getLocation(G);if(H){this.locationCache[G.id]=H;}else{delete this.locationCache[G.id];}}}}},verifyEl:function(D){try{if(D){var C=D.offsetParent;if(C){return true;}}}catch(E){}return false;},getLocation:function(H){if(!this.isTypeOfDD(H)){return null;}var F=H.getEl(),K,E,D,M,L,N,C,J,G;try{K=YAHOO.util.Dom.getXY(F);}catch(I){}if(!K){return null;}E=K[0];D=E+F.offsetWidth;M=K[1];L=M+F.offsetHeight;N=M-H.padding[0];C=D+H.padding[1];J=L+H.padding[2];G=E-H.padding[3];return new YAHOO.util.Region(N,C,J,G);},isOverTarget:function(K,C,E,F){var G=this.locationCache[C.id];if(!G||!this.useCache){G=this.getLocation(C);this.locationCache[C.id]=G;}if(!G){return false;}C.cursorIsOver=G.contains(K);var J=this.dragCurrent;if(!J||(!E&&!J.constrainX&&!J.constrainY)){return C.cursorIsOver;}C.overlap=null;if(!F){var H=J.getTargetCoord(K.x,K.y);var D=J.getDragEl();F=new YAHOO.util.Region(H.y,H.x+D.offsetWidth,H.y+D.offsetHeight,H.x);}var I=F.intersect(G);if(I){C.overlap=I;return(E)?true:C.cursorIsOver;}else{return false;}},_onUnload:function(D,C){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(D){var C=this.elementCache[D];if(!C||!C.el){C=this.elementCache[D]=new this.ElementWrapper(YAHOO.util.Dom.get(D));}return C;},getElement:function(C){return YAHOO.util.Dom.get(C);},getCss:function(D){var C=YAHOO.util.Dom.get(D);return(C)?C.style:null;},ElementWrapper:function(C){this.el=C||null;this.id=this.el&&C.id;this.css=this.el&&C.style;},getPosX:function(C){return YAHOO.util.Dom.getX(C);},getPosY:function(C){return YAHOO.util.Dom.getY(C);},swapNode:function(E,C){if(E.swapNode){E.swapNode(C);}else{var F=C.parentNode;var D=C.nextSibling;if(D==E){F.insertBefore(E,C);}else{if(C==E.nextSibling){F.insertBefore(C,E);}else{E.parentNode.replaceChild(C,E);F.insertBefore(E,D);}}}},getScroll:function(){var E,C,F=document.documentElement,D=document.body;if(F&&(F.scrollTop||F.scrollLeft)){E=F.scrollTop;C=F.scrollLeft;}else{if(D){E=D.scrollTop;C=D.scrollLeft;}else{}}return{top:E,left:C};},getStyle:function(D,C){return YAHOO.util.Dom.getStyle(D,C);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(C,E){var D=YAHOO.util.Dom.getXY(E);YAHOO.util.Dom.setXY(C,D);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(D,C){return(D-C);},_timeoutCount:0,_addListeners:function(){var C=YAHOO.util.DDM;if(YAHOO.util.Event&&document){C._onLoad();}else{if(C._timeoutCount>2000){}else{setTimeout(C._addListeners,10);if(document&&document.body){C._timeoutCount+=1;}}}},handleWasClicked:function(C,E){if(this.isHandle(E,C.id)){return true;}else{var D=C.parentNode;while(D){if(this.isHandle(E,D.id)){return true;}else{D=D.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var A=YAHOO.util.Event;var B=YAHOO.util.Dom;YAHOO.util.DragDrop=function(E,C,D){if(E){this.init(E,C,D);}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments);},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(C,D){},startDrag:function(C,D){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(C,D){},b4DragOver:function(C){},onDragOver:function(C,D){},b4DragOut:function(C){},onDragOut:function(C,D){},b4DragDrop:function(C){},onDragDrop:function(C,D){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=B.get(this.id);
}return this._domRef;},getDragEl:function(){return B.get(this.dragElId);},init:function(F,C,D){this.initTarget(F,C,D);A.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var E in this.events){this.createEvent(E+"Event");}},initTarget:function(E,C,D){this.config=D||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof E!=="string"){this._domRef=E;E=B.generateId(E);}this.id=E;this.addToGroup((C)?C:"default");this.handleElId=E;A.onAvailable(E,this.handleOnAvailable,this,true);this.setDragElId(E);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var C in this.config.events){if(this.config.events[C]===false){this.events[C]=false;}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(E,C,F,D){if(!C&&0!==C){this.padding=[E,E,E,E];}else{if(!F&&0!==F){this.padding=[E,C,E,C];}else{this.padding=[E,C,F,D];}}},setInitPosition:function(F,E){var G=this.getEl();if(!this.DDM.verifyEl(G)){if(G&&G.style&&(G.style.display=="none")){}else{}return;}var D=F||0;var C=E||0;var H=B.getXY(G);this.initPageX=H[0]-D;this.initPageY=H[1]-C;this.lastPageX=H[0];this.lastPageY=H[1];this.setStartPosition(H);},setStartPosition:function(D){var C=D||B.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=C[0];this.startPageY=C[1];},addToGroup:function(C){this.groups[C]=true;this.DDM.regDragDrop(this,C);},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C];}this.DDM.removeDDFromGroup(this,C);},setDragElId:function(C){this.dragElId=C;},setHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.handleElId=C;this.DDM.regHandle(this.id,C);},setOuterHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}A.on(C,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(C);this.hasOuterHandles=true;},unreg:function(){A.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(J,I){var D=J.which||J.button;if(this.primaryButtonOnly&&D>1){return;}if(this.isLocked()){return;}var C=this.b4MouseDown(J),F=true;if(this.events.b4MouseDown){F=this.fireEvent("b4MouseDownEvent",J);}var E=this.onMouseDown(J),H=true;if(this.events.mouseDown){H=this.fireEvent("mouseDownEvent",J);}if((C===false)||(E===false)||(F===false)||(H===false)){return;}this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(A.getPageX(J),A.getPageY(J));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(J)){this.setStartPosition();this.DDM.handleMouseDown(J,this);this.DDM.stopEvent(J);}else{}}},clickValidator:function(D){var C=YAHOO.util.Event.getTarget(D);return(this.isValidHandleChild(C)&&(this.id==this.handleElId||this.DDM.handleWasClicked(C,this.id)));},getTargetCoord:function(E,D){var C=E-this.deltaX;var F=D-this.deltaY;if(this.constrainX){if(C<this.minX){C=this.minX;}if(C>this.maxX){C=this.maxX;}}if(this.constrainY){if(F<this.minY){F=this.minY;}if(F>this.maxY){F=this.maxY;}}C=this.getTick(C,this.xTicks);F=this.getTick(F,this.yTicks);return{x:C,y:F};},addInvalidHandleType:function(C){var D=C.toUpperCase();this.invalidHandleTypes[D]=D;},addInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.invalidHandleIds[C]=C;},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C);},removeInvalidHandleType:function(C){var D=C.toUpperCase();delete this.invalidHandleTypes[D];},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}delete this.invalidHandleIds[C];},removeInvalidHandleClass:function(D){for(var E=0,C=this.invalidHandleClasses.length;E<C;++E){if(this.invalidHandleClasses[E]==D){delete this.invalidHandleClasses[E];}}},isValidHandleChild:function(F){var E=true;var H;try{H=F.nodeName.toUpperCase();}catch(G){H=F.nodeName;}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[F.id];for(var D=0,C=this.invalidHandleClasses.length;E&&D<C;++D){E=!B.hasClass(F,this.invalidHandleClasses[D]);}return E;},setXTicks:function(F,C){this.xTicks=[];this.xTickSize=C;var E={};for(var D=this.initPageX;D>=this.minX;D=D-C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}for(D=this.initPageX;D<=this.maxX;D=D+C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(F,C){this.yTicks=[];this.yTickSize=C;var E={};for(var D=this.initPageY;D>=this.minY;D=D-C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}for(D=this.initPageY;D<=this.maxY;D=D+C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(E,D,C){this.leftConstraint=parseInt(E,10);this.rightConstraint=parseInt(D,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(C){this.setXTicks(this.initPageX,C);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(C,E,D){this.topConstraint=parseInt(C,10);this.bottomConstraint=parseInt(E,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(D){this.setYTicks(this.initPageY,D);
}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(I,F){if(!F){return I;}else{if(F[0]>=I){return F[0];}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E];}}return F[F.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(C,A,B){if(C){this.init(C,A,B);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D);},setDelta:function(B,A){this.deltaX=B;this.deltaY=A;},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B);},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);if(!this.deltaSetXY){var H=[E.x,E.y];YAHOO.util.Dom.setXY(C,H);var D=parseInt(YAHOO.util.Dom.getStyle(C,"left"),10);var B=parseInt(YAHOO.util.Dom.getStyle(C,"top"),10);this.deltaSetXY=[D-E.x,B-E.y];}else{YAHOO.util.Dom.setStyle(C,"left",(E.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(C,"top",(E.y+this.deltaSetXY[1])+"px");}this.cachePosition(E.x,E.y);var A=this;setTimeout(function(){A.autoScroll.call(A,E.x,E.y,C.offsetHeight,C.offsetWidth);},0);},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A;}else{var C=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1];}},autoScroll:function(J,I,E,K){if(this.scroll){var L=this.DDM.getClientHeight();var B=this.DDM.getClientWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A);}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A);}if(M>B&&F<C){window.scrollTo(D+A,N);}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},b4Drag:function(A){this.setDragElPos(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this,A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame();},50);return;}var F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.style;D.position="absolute";D.visibility="hidden";D.cursor="move";D.border="2px solid #aaa";D.zIndex=999;D.height="25px";D.width="25px";var C=document.createElement("div");E.setStyle(C,"height","100%");E.setStyle(C,"width","100%");E.setStyle(C,"background-color","#ccc");E.setStyle(C,"opacity","0");F.appendChild(C);A.insertBefore(F,A.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2));}this.setDragElPos(E,D);YAHOO.util.Dom.setStyle(A,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var H=YAHOO.util.Dom;var B=this.getEl();var C=this.getDragEl();var G=parseInt(H.getStyle(C,"borderTopWidth"),10);var I=parseInt(H.getStyle(C,"borderRightWidth"),10);var F=parseInt(H.getStyle(C,"borderBottomWidth"),10);var D=parseInt(H.getStyle(C,"borderLeftWidth"),10);if(isNaN(G)){G=0;}if(isNaN(I)){I=0;}if(isNaN(F)){F=0;}if(isNaN(D)){D=0;}var E=Math.max(0,B.offsetWidth-I-D);var A=Math.max(0,B.offsetHeight-G-F);H.setStyle(C,"width",E+"px");H.setStyle(C,"height",A+"px");}},b4MouseDown:function(B){this.setStartPosition();var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.autoOffset(A,C);},b4StartDrag:function(A,B){this.showFrame(A,B);},b4EndDrag:function(A){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(D){var C=YAHOO.util.Dom;var B=this.getEl();var A=this.getDragEl();C.setStyle(A,"visibility","");C.setStyle(B,"visibility","hidden");YAHOO.util.DDM.moveToEl(B,A);C.setStyle(A,"visibility","hidden");C.setStyle(B,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/bubbling/bubbling/bubbling-min.js */
/*
Copyright (c) 2007, Caridy Patino. All rights reserved.
Portions Copyright (c) 2007, Yahoo!, Inc. All rights reserved.
Code licensed under the BSD License:
http://www.bubbling-library.com/eng/licence
version: 1.5.0
*/
YAHOO.namespace("plugin","behavior");
(function(){var $Y=YAHOO.util,$E=YAHOO.util.Event,$D=YAHOO.util.Dom,$L=YAHOO.lang,$=YAHOO.util.Dom.get;YAHOO.Bubbling=function(){var obj={},ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1);var navRelExternal=function(layer,args){var el=args[1].anchor;if(!(args[1].flagged||args[1].decrepitate)&&el){var r=el.getAttribute("rel"),t=el.getAttribute("target");if((!t||(t===''))&&(r=='external')){el.setAttribute("target","blank");}}};var defaultActionsControl=function(layer,args){obj.processingAction(layer,args,obj.defaultActions);};var _searchYUIButton=function(t){var el=obj.getOwnerByClassName(t,'yui-button'),bt=null,id=null;if($L.isObject(el)&&YAHOO.widget.Button){bt=YAHOO.widget.Button.getButton(el.id);}return bt;};obj.ready=false;obj.force2alfa=false;obj.bubble={};obj.onReady=new $Y.CustomEvent('bubblingOnReady',obj,true);obj.getOwnerByClassName=function(node,className){return($D.hasClass(node,className)?node:$D.getAncestorByClassName(node,className));};obj.getOwnerByTagName=function(node,tagName){node=$D.get(node);if(!node){return null;}return(node.tagName&&node.tagName.toUpperCase()==tagName.toUpperCase()?node:$D.getAncestorByTagName(node,tagName));};obj.getAncestorByClassName=obj.getOwnerByClassName;obj.getAncestorByTagName=obj.getOwnerByTagName;obj.onKeyPressedTrigger=function(args,e,m){var b='key';e=e||$E.getEvent();m=m||{};m.action=b;m.target=args.target||(e?$E.getTarget(e):null);m.flagged=false;m.decrepitate=false;m.event=e;m.stop=false;m.type=args.type;m.keyCode=args.keyCode;m.charCode=args.charCode;m.ctrlKey=args.ctrlKey;m.shiftKey=args.shiftKey;m.altKey=args.altKey;this.bubble.key.fire(e,m);if(m.stop){$E.stopEvent(e);}return m.stop;};obj.onEventTrigger=function(b,e,m){e=e||$E.getEvent();m=m||{};m.action=b;m.target=(e?$E.getTarget(e):null);m.flagged=false;m.decrepitate=false;m.event=e;m.stop=false;this.bubble[b].fire(e,m);if(m.stop){$E.stopEvent(e);}return m.stop;};obj.onNavigate=function(e){var conf={anchor:this.getOwnerByTagName($E.getTarget(e),'A'),button:_searchYUIButton($E.getTarget(e))};if(!conf.anchor&&!conf.button){conf.input=this.getOwnerByTagName($E.getTarget(e),'INPUT');}if(conf.button){conf.value=conf.button.get('value');}else if(conf.input){conf.value=conf.input.getAttribute('value');}if(!this.onEventTrigger('navigate',e,conf)){this.onEventTrigger('god',e,conf);}};obj.onProperty=function(e){this.onEventTrigger('property',e,{anchor:this.getOwnerByTagName($E.getTarget(e),'A'),button:_searchYUIButton($E.getTarget(e))});};obj._timeoutId=0;obj.onRepaint=function(e){clearTimeout(obj._timeoutId);obj._timeoutId=setTimeout(function(){var b='repaint',e={target:document.body},m={action:b,target:null,event:e,flagged:false,decrepitate:false,stop:false};obj.bubble[b].fire(e,m);if(m.stop){$E.stopEvent(e);}},150);};obj.onRollOver=function(e){this.onEventTrigger('rollover',e,{anchor:this.getOwnerByTagName($E.getTarget(e),'A')});};obj.onRollOut=function(e){this.onEventTrigger('rollout',e,{anchor:this.getOwnerByTagName($E.getTarget(e),'A')});};obj.onKeyPressed=function(args){this.onKeyPressedTrigger(args);};obj.getActionName=function(el,depot){depot=depot||{};var b=null,r=null,f=($D.inDocument(el)?function(b){return $D.hasClass(el,b)}:function(b){return el.hasClass(b);});if(el&&($L.isObject(el)||(el=$(el)))){try{r=el.getAttribute("rel");}catch(e){};for(b in depot){if((depot.hasOwnProperty(b))&&(f(b)||(b===r))){return b;}}}return null;};obj.getFirstChildByTagName=function(el,t){if(el&&($L.isObject(el)||(el=$(el)))&&t){var l=el.getElementsByTagName(t);if(l.length>0){return l[0];}}return null;};obj.virtualTarget=function(e,el){if(el&&($L.isObject(el)||(el=$(el)))&&$L.isObject(e)){var t=$E.getRelatedTarget(e);if($L.isObject(t)){while((t.parentNode)&&$L.isObject(t.parentNode)&&(t.parentNode.tagName!=="BODY")){if(t.parentNode===el){return true;}t=t.parentNode;}}}return false;};obj.addLayer=function(layers,scope){var result=false;layers=($L.isArray(layers)?layers:[layers]);scope=scope||window;for(var i=0;i<layers.length;++i){if(layers[i]&&!this.bubble.hasOwnProperty(layers[i])){this.bubble[layers[i]]=new $Y.CustomEvent(layers[i],scope,true);result=true;}}return result;};obj.subscribe=function(layer,bh,scope){var first=this.addLayer(layer);if(layer){if($L.isObject(scope)){this.bubble[layer].subscribe(bh,scope,true);}else{this.bubble[layer].subscribe(bh);}}return first;};obj.on=obj.subscribe;obj.fire=function(layer,obj){obj=obj||{};obj.action=layer;obj.flagged=false;obj.decrepitate=false;obj.stop=false;if(this.bubble.hasOwnProperty(layer)){this.bubble[layer].fire(null,obj);}return obj.stop;};obj.processingAction=function(layer,args,actions,force){var behavior=null,t;if(!(args[1].flagged||args[1].decrepitate)||force){t=args[1].anchor||args[1].input||args[1].button;if(t){behavior=this.getActionName(t,actions);args[1].el=t;}if(behavior&&(actions[behavior].apply(args[1],[layer,args]))){$E.stopEvent(args[0]);args[1].flagged=true;args[1].decrepitate=true;args[1].stop=true;}}};obj.defaultActions={};obj.addDefaultAction=function(n,f,force){if(n&&f&&(!this.defaultActions.hasOwnProperty(n)||force)){this.defaultActions[n]=f;}};$E.addListener(window,"resize",obj.onRepaint,obj,true);obj.on('navigate',navRelExternal);obj.on('navigate',defaultActionsControl);obj.initMonitors=function(config){var fMonitors=function(){var oMonitors=new YAHOO.widget.Module('yui-cms-font-monitor',{monitorresize:true,visible:false});oMonitors.render(document.body);YAHOO.widget.Module.textResizeEvent.subscribe(obj.onRepaint,obj,true);YAHOO.widget.Overlay.windowScrollEvent.subscribe(obj.onRepaint,obj,true);};if($L.isFunction(YAHOO.widget.Module)){$E.onDOMReady(fMonitors,obj,true);}};obj.init=function(){if(!this.ready){var el=document.body;$E.addListener(el,"click",obj.onNavigate,obj,true);$E.addListener(el,(isOpera?"mousedown":"contextmenu"),obj.onProperty,obj,true);if(isOpera){$E.addListener(el,"click",obj.onProperty,obj,true);}$E.addListener(el,"mouseover",obj.onRollOver,obj,true);$E.addListener(el,"mouseout",obj.onRollOut,obj,true);$E.addListener(document,"keyup",obj.onKeyPressed,obj,true);$E.addListener(document,"keydown",obj.onKeyPressed,obj,true);this.ready=true;obj.onReady.fire();}};$E.onDOMReady(obj.init,obj,true);obj.addLayer(['navigate','god','property','key','repaint','rollover','rollout']);return obj;}();})();
YAHOO.register("bubbling",YAHOO.Bubbling,{version:"1.5.0",build:"222"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/bubbling/dispatcher/dispatcher-min.js */
/*
Copyright (c) 2007, Caridy Patino. All rights reserved.
Portions Copyright (c) 2007, Yahoo!, Inc. All rights reserved.
Code licensed under the BSD License:
http://www.bubbling-library.com/eng/licence
version: 1.5.0
*/
YAHOO.namespace("plugin");
(function(){var $C=YAHOO.util.Connect,$L=YAHOO.lang,$E=YAHOO.util.Event,$D=YAHOO.util.Dom,$=YAHOO.util.Dom.get;var constants={LOADING:1,DISPATCHED:2,ERROR:3,EMPTY:4,proxy:'/dispatcher.php?uri=',CSSNODE:1,JSNODE:2};var reScriptTag=/<script([^>]*)>([\s\S]*?)<\/script>/igm,reScriptTagSrc=/src=(['"]?)([^"']*)\1/i,reScriptTagRel=/rel=(['"]?)([^"']*)\1/i,reLinkTag=/<link([^>]*)(>[\s]*<\/link>|>)/igm,reLinkTagSrc=/href=(['"]?)([^"']*)\1/i,reStyleTag=/<style([^>]*)>([\s\S]*?)<\/style>/igm,reTagParams=new RegExp('([\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*','im');var reCSS3rdFile=new RegExp('url\\s*\\(([^\\)]*)','igm');var reURI=new RegExp('^((?:http|https)://)((?:\\w+[\.|-]?)*\\w+)(/.*)$','i');YAHOO.plugin.Dispatcher=function(){var obj={},_threads={},_hashtable=[],_oDefaultConfig={relative:false,baseURI:document.location},_loadingClass='loading',_classname='yui-dispatchable';function parseUri(str,strictMode){var o={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},m=o.parser[strictMode?"strict":"loose"].exec(str),uri={},i=14;while(i--)uri[o.key[i]]=m[i]||"";uri[o.q.name]={};uri[o.key[12]].replace(o.q.parser,function($0,$1,$2){if($1)uri[o.q.name][$1]=$2;});return uri;};function _eraseQuotes(str){if($L.isString(str)){str=str.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");str=str.replace(/^(['|"])*(\S*(?:\s+\S+)*)\1$/,"$2");}return str;}function _getParams(str,validator){var p=null,r={};validator=validator||{};if($L.isString(str)){while(p=reTagParams.exec(str)){p[2]=(validator.hasOwnProperty(p[1])?validator[p[1]]:p[2]);if(p[2]){r[p[1]]=_eraseQuotes(p[2]);}str=str.replace(reTagParams,'');}}return r;}function _baseURI(uri){uri=(($L.isString(uri)&&(uri.indexOf('/')>-1))?uri:_oDefaultConfig.baseURI)+'';return uri.substr(0,uri.lastIndexOf('/')+1);}function _relativeURI(base,uri){if(uri&&!reURI.test(uri)&&(uri.indexOf('/')!==0)){uri=base+uri;}return uri;}function _onStart(config){config.onStart=config.before||config.onStart;if($L.isFunction(config.onStart)){config.onStart.apply(config,[config.element]);config.onStart=null;}if(!config.underground&&YAHOO.Bubbling){YAHOO.Bubbling.fire('onAsyncRequestStart',{element:config.element});}}function _onLoad(config){config.onLoad=config.after||config.onLoad;if($L.isFunction(config.onLoad)){config.onLoad.apply(config,[config.element]);}if(!config.underground&&YAHOO.Bubbling){YAHOO.Bubbling.fire('onAsyncRequestEnd',{element:config.element});}}function dispatch(hd,config){var callback=null,flag=true,node=null,uri='',i=0;config=config||{};if(obj.isAlive(hd)){node=_threads[hd].chunks.shift();if($L.isObject(node)&&node.src){config.hash=_hashtable.length;for(i=0;i<_hashtable.length;i++){if(_hashtable[i].uri==node.src){if((_hashtable[i].status==constants.DISPATCHED)&&!config.override){flag=false;}else{}config.hash=i;break;}}if(flag){uri=obj.firewall(node.src,config,true);if($L.isString(uri)&&(uri!=='')){_hashtable[config.hash]={uri:node.src,proxy:uri,status:constants.LOADING};if(node.type===constants.JSNODE){obj.area=hd;obj.destroyer=_threads[hd].destroyer;config.handle=YAHOO.util.Get.script(uri,{onSuccess:function(){_hashtable[config.hash].status=constants.DISPATCHED;if(config.rel&&YAHOO.Bubbling){YAHOO.Bubbling.fire('onScriptReady',{module:node.rel,src:node.src,uri:uri,hash:config.hash});}config.hash=null;dispatch(hd,config);},onFailure:function(){dispatch(hd,config);},scope:obj,data:config});}else if(node.type===constants.CSSNODE){YAHOO.util.Get.css(uri,{});_hashtable[config.hash].status=constants.DISPATCHED;dispatch(hd,config);}}}else{dispatch(hd,config);}}else{config.hash=null;exec(hd,node.content,config);}}else{obj.kill(hd);_onLoad(config);}}function exec(hd,c,config){var status=constants.EMPTY;if(c&&(c!=='')){config.scope=(config.scope?config.scope:window);try{status=constants.DISPATCHED;this.scriptScope=null;if(!config.hash||(_hashtable[config.hash].status!=constants.DISPATCHED)){obj.area=hd;obj.destroyer=_threads[hd].destroyer;if($L.isFunction(config.evalRoutine)){this.scriptScope=config.evalRoutine(c,config);}else{this.scriptScope=new(new Function('_container_',c+'; return this;'))(config.scope);}}}catch(e){status=constants.ERROR;if($L.isFunction(config.error)){config.error.apply(config,[hd,c,_hashtable]);}else{throw new Error("Dispacher: Script Execution Error ("+e+")");}}}if($L.isNumber(config.hash)){_hashtable[config.hash].status=status;config.hash=null;}dispatch(hd,config);}function display(el,c,config){config.action=(config.action?config.action:'replace');switch(config.action){case'tabview':destroy(el.get('contentEl'),config);try{el.set('content',c);}catch(e1){return false;}break;case'update':c=el.innerHTML+c;try{el.innerHTML=c;}catch(e2){return false;}break;case'replace':default:destroy(el,config);try{el.innerHTML=c;}catch(e3){return false;}break;}return true;}function destroy(el,config){var hd=config.guid,i=0;if($L.isObject(_threads[hd].destroyer)){_threads[hd].destroyer.fire(el,config);}if($D.inDocument(el)){for(i=0;i<el.childNodes.length;i++){$E.purgeElement(el.childNodes[i],true);}}$D.addClass(el,_classname);_threads[hd].destroyer=new YAHOO.util.CustomEvent('destroyer');if($L.isFunction(config.onDestroy)){_threads[hd].destroyer.subscribe(config.onDestroy);}}function parse(hd,s,config){config=config||{};config.uri=config.uri||null;config.relative=config.relative||_oDefaultConfig.relative;var m=true,attr=false,base=_baseURI(config.uri);s=s.replace(reStyleTag,function(str,p1,p2,offset,s){if(p2){obj.applyCSS(p2,_getParams(p1),config);}return"";});s=s.replace(reLinkTag,function(str,p1,p2,offset,s){if(p1){attr=p1.match(reLinkTagSrc);if(attr){if(config.relative){attr[2]=_relativeURI(base,attr[2]);}_threads[hd].chunks.push({src:attr[2],content:'',type:constants.CSSNODE,params:_getParams(p1)});}}return"";});s=s.replace(reScriptTag,function(str,p1,p2,offset,s){if(p1){attr=p1.match(reScriptTagSrc);if(attr){var rel=p1.match(reScriptTagRel);rel=(rel?rel[2]:null);if(config.relative){attr[2]=_relativeURI(base,attr[2]);}_threads[hd].chunks.push({src:attr[2],content:'',type:constants.JSNODE,rel:rel,params:_getParams(p1)});}}if(p2){_threads[hd].chunks.push({src:null,content:p2,type:constants.JSNODE,params:_getParams(p1)});}return"";});return s;}if(YAHOO.Bubbling){YAHOO.Bubbling.on('onScriptReady',function(){if(this.src&&!this.hash){_hashtable[this.hash].status=constants.DISPATCHED;}});}obj.area=null;obj.strictMode=true;obj.destroyer=null;obj.fetch=function(el,uri,config){config=config||{};config.uri=uri;var callback={success:function(o){if(o.responseText!='undefined'){obj.process(el,o.responseText,config,true);}$D.removeClass(el,_loadingClass);},failure:function(o){if($L.isFunction(config.onError)){config.onError.apply(config,[config.element]);}$D.removeClass(el,_loadingClass);}};if(uri){uri=obj.firewall(uri,config);$D.addClass(el,_loadingClass);config.handle=$C.asyncRequest('GET',uri,callback);config.element=el;_onStart(config);return config.handle;}return null;};obj.process=function(el,content,config,flag){var hd=null;config=config||{};if($L.isObject(el)||(el=$(el))){hd=config.guid||$E.generateId(el);this.kill(hd);config.element=el;config.content=content;config.guid=hd;if(!flag){_onStart(config);}if(display(el,parse(hd,content,config),config)){dispatch(hd,config);}}return hd;};obj.delegate=function(tab,tabview,config){config=config||{};config.action='tabview';config.uri=tab.get('dataSrc')||null;config.tab=tab;tab.loadHandler.success=function(o){var el=tab.get('contentEl');config.tab=el;config.underground=true;obj.process(tab,o.responseText,config);if(YAHOO.Bubbling){YAHOO.Bubbling.fire('onAsyncRequestEnd',{element:el});}};tab.on("activeChange",function(){if(YAHOO.Bubbling&&this.get('active')&&tab.get('dataSrc')&&!this.get('cacheData')){YAHOO.Bubbling.fire('onAsyncRequestStart',{element:this.get('contentEl')});}});if($L.isObject(tabview)){tabview.addTab(tab);}};obj.applyCSS=function(cssCode,params,config){params=params||{};var styleElement=document.createElement("style"),base=params.href||'';config=config||{};config.uri=config.uri||_oDefaultConfig.baseURI;config.relative=config.relative||_oDefaultConfig.relative;if(config.relative){base=_baseURI(config.uri);base=_relativeURI(base,params.href);}base=_baseURI(base);cssCode=cssCode.replace(reCSS3rdFile,function(str,p1,offset,s){p1=_eraseQuotes(p1);p1='url('+_relativeURI(base,p1);return p1;});styleElement.type="text/css";if($L.isObject(styleElement.styleSheet)){styleElement.styleSheet.cssText=cssCode;}else{styleElement.appendChild(document.createTextNode(cssCode));}try{document.getElementsByTagName("head")[0].appendChild(styleElement);}catch(e){throw new Error("Dispacher: CSS Processing Error ("+e+")");return false;}return true;};obj.jsLoader=function(uri,config){if($L.isString(uri)&&(uri!=='')){config=config||{};$E.generateId(config);obj.kill(config.id);_threads[config.id].chunks=[{src:uri,content:'',type:constants.JSNODE,params:{href:uri}}];config.underground=true;_onStart(config);dispatch(config.id,config);return config.id;}return null;};obj.cssLoader=function(uri,config){if($L.isString(uri)&&(uri!=='')){config=config||{};$E.generateId(config);obj.kill(config.id);_threads[config.id].chunks=[{src:uri,content:'',type:constants.CSSNODE,params:{href:uri}}];config.underground=true;_onStart(config);dispatch(config.id,config);return config.id;}return null;};obj.isAlive=function(hd){return(hd&&$L.isObject(_threads[hd])&&(_threads[hd].chunks.length>0));};obj.kill=function(hd){if(hd&&!$L.isObject(_threads[hd])){_threads[hd]={chunks:[],destroyer:null};}else if(this.isAlive(hd)){_threads[hd].chunks=[];}};obj.destroy=function(hd){this.kill(hd);if(hd&&!$L.isObject(_threads[hd])){_threads[hd].destroyer.fire($(hd),{});}};obj.onDestroy=function(hd,bh,scope){var params=(scope?[bh,scope,true]:[bh]);if($L.isObject(_threads[hd])&&$L.isObject(_threads[hd].destroyer)){if($L.isObject(scope)){_threads[hd].destroyer.subscribe(bh,scope,true);}else{_threads[hd].destroyer.subscribe(bh);}return true;}return false;};obj.init=function(c){c=c||{};c.relative=c.relative||false;_oDefaultConfig=c;};obj.firewall=function(uri,config,monolitic){var sDomain=null,sProtocol=null,m=null;while(uri.indexOf('&amp;')>-1){uri=uri.replace('&amp;','&');}config.proxy=config.proxy||constants.proxy;if($L.isFunction(config.firewall)){uri=config.firewall.apply(config,[uri]);}else{if(!config.monolithic&&!monolitic&&config.proxy){m=uri.match(reURI);if(m&&(m[2]!==document.domain)){uri=config.proxy+escape(uri);}}}return uri;};obj.augmentURI=function(url,m){m=m||{};var o=parseUri(url,this.strictMode),u='';o.queryKey=o.queryKey||{};$L.augmentObject(o.queryKey,m,true);if(o.protocol)u+=o.protocol+':';if(this.strictMode){if(/^(?:[^:\/?#]+:)?\/\//.test(o.source))u+='//';}else{if(/^(?:(?![^:@]+:[^:@\/]*@)[^:\/?#.]+:)?\/\//.test(o.source))u+='//';}if(o.authority){if(o.userInfo){if(o.user)u+=o.user;if(o.userInfo.indexOf(':')>-1)u+=':';if(o.password)u+=o.password;u+='@';}if(o.host)u+=o.host;if(o.port)u+=':'+o.port;}if(o.relative){if(o.path){if(o.directory)u+=o.directory;if(o.file)u+=o.file;}u+='?';for(sName in o.queryKey){if(o.queryKey.hasOwnProperty(sName)){u+=sName+'='+o.queryKey[sName]+'&';}}if(o.anchor)u+='#'+o.anchor;}return u;};obj.toString=function(){return("Dispatcher Manager Plugin (Singlenton)");};return obj;}();})();
YAHOO.util.Dispatcher=YAHOO.plugin.Dispatcher;
YAHOO.register("dispatcher",YAHOO.plugin.Dispatcher,{version:"1.5.0",build:"218"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/wtk/util/JSONParser-min.js */
if(!this.JSON){JSON={};}(function(){function f(n){return n<10?"0"+n:n;}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z";};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key);}if(typeof rep==="function"){value=rep.call(holder,key,value);}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null";}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null";}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v;}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v;}return v;}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" ";}}else{if(typeof space==="string"){indent=space;}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify");}return str("",{"":value});};}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j;}throw new SyntaxError("JSON.parse");};}})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/behaviors/global-behaviors-min.js */
(function(){var c=YAHOO.Bubbling;var b=YAHOO.util.Dom;var a=YAHOO.util.Event;var d=getPackageForName("com.forddirect.ng.util");c.addDefaultAction("toggle",d.Actions.newHandler(function(f,g){var e=b.getAncestorByClassName(f,"toggleable");if(e){if(b.hasClass(e,"active")){b.removeClass(e,"active");}else{b.addClass(e,"active");}}}));c.addDefaultAction("offsite",d.Actions.newHandler(function(e,f){var g=e?e.href:null;if(g){d.Navigation.popupWindow(g);}}));YAHOO.Bubbling.addDefaultAction("backto-top",d.Actions.newHandler(function(f,e){d.Animation.resetScroll();return false;}));})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/wtk/hover-min.js */
(function(){var c=YAHOO.util.Event;var d=YAHOO.util.Dom;var f=getPackageForName("com.forddirect.ng.util");var b=null;var a=null;var e=/:hover/;var g=/(^|\s)((([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active))|((a|input|textarea)([#.][^ ]+)?:unknown)/i;f.Hover={__replacedClasses:{},addHover:function(j){try{if(j.hover===undefined){j.hover={classes:null};var l=j.className;var i=[];if(l){var h=l.split(" ");f.Array.forEach(h,function(n){var m=f.Hover.__replacedClasses[n];if(m){i.push(m);}});}if(i.length){j.hover.classes=i;}else{j.hover.classes=["_hover"];}}if(j.hover.classes){f.Dom.addClasses(j,j.hover.classes);}}catch(k){log.error(k);}},removeHover:function(h){try{if(h){if(h.hover.classes){f.Dom.removeClasses(h,h.hover.classes);}}}catch(i){log.error(i);}},addTransformation:function(h,k){var j=h.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2_hover");var i=RegExp.$2;f.Hover.__replacedClasses[i]=i+"_hover";},parseCSSRule:function(j){var h=j.selectorText,i=j.style.cssText;if(i){if(e.test(h)){if(g.test(h)){f.Hover.addTransformation(h,i);}}}},parseStylesheet:function(n){try{if(n.imports){var j=n.imports,h=j.length;for(var m=0;m<h;m++){f.Hover.parseStylesheet(n.imports[m]);}}var p=(b=n).rules,k=p.length;for(a=0;a<k;a++){f.Hover.parseCSSRule(p[a]);}}catch(o){log.error(o);}},parseStylesheets:function(){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){try{if(!window.cssUpdated){log.debug("Parsing all stylesheets for hover relations.");window.cssUpdated=true;var j=new Date().getTime();var n=window.document.styleSheets,h=n.length;for(var k=0;k<h;k++){f.Hover.parseStylesheet(n[k]);}j=new Date().getTime()-j;log.debug("... elapsed time: "+j+"ms.");}}catch(m){log.error(m);}}else{log.debug("Skipping stylesheet processing for hover; this browser should support :hover natively.");}}};c.onDOMReady(function(){f.Hover.parseStylesheets();});})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/navigation-min.js */
(function(){var a=YAHOO.util.Dom;var c=getPackageForName("com.forddirect.ng.util");var b=function(){var f=0;var e={};var d={};d.incrementAndGetRequestId=function(){f=f+1;return f;};d.set=function(g,h){e[g]=h;};d.get=function(g){return e[g];};return d;}();c.Navigation={_fixIEOpacity:function(d){d=d?a.get(d):null;if(d&&d.style.filter){d.style.filter="";}},popupWindow:function(e,g){g=g||{};g.width=g.width||"960";g.height=g.height||"560";g.status=g.status||true;g.toolbar=g.toolbar||true;g.menubar=g.menubar||true;g.directories=g.directories||true;g.resizable=g.resizable||true;g.scrollbars=g.scrollbars||true;var f="width="+g.width+",height="+g.height;var d=function(h){if(typeof(g[h]!=="undefined")){f+=","+h+"="+(g[h]?"1":"0");}};d("status");d("toolbar");d("menubar");d("resizable");d("directories");d("scrollbars");d("status");window.open(e,f);},refreshBlocks:function(h,e){var g=a.get(h);if(g){var f=new YAHOO.util.Anim(g,{opacity:{to:0}},0.2);var d=new YAHOO.util.Anim(g,{opacity:{to:1}},0.4);d.onComplete.subscribe(function(){c.Navigation._fixIEOpacity(g);g.style.display="block";if(typeof(e)!="undefined"){e();}});if(a.getStyle(g,"opacity")!==0){f.onComplete.subscribe(function(){d.animate();});f.animate();}else{d.animate();}}},toggleBlocks:function(i,f){var h=a.get(i);if(h){var g=new YAHOO.util.Anim(h,{opacity:{to:0}},0.2);var d=new YAHOO.util.Anim(h,{opacity:{to:1}},0.2);var e="fadeIn";if(a.getStyle(h,"opacity")!==0){e="fadeOut";g.onComplete.subscribe(function(){h.style.display="none";if(typeof(f)!="undefined"){f(e);}});g.animate();}else{h.style.display="block";d.onComplete.subscribe(function(){c.Navigation._fixIEOpacity(h);if(typeof(f)!="undefined"){f(e);}});d.animate();}}},swapBlocks:function(f,j,h,g){var d=a.get(f);var i=a.get(j);if(!h){h={};}if(!h.displayStyle){h.displayStyle="block";}if(d&&i){a.setStyle(i,"opacity","0");var e=new YAHOO.util.Anim(d,{opacity:{to:0}},0.2);e.onComplete.subscribe(function(){a.setStyle(i,"display",h.displayStyle);a.setStyle(d,"display","none");var k=new YAHOO.util.Anim(i,{opacity:{to:1}},0.1);k.onComplete.subscribe(function(){c.Navigation._fixIEOpacity(i);if(g){g(h);}});k.animate();});e.animate();}},replaceContent:function(f,g,i){var d=a.get(f);if(d){var h=d.cloneNode(true);a.setStyle(h,"opacity","0");h.innerHTML=g;var e=new YAHOO.util.Anim(d,{opacity:{to:0}},0.2);e.onComplete.subscribe(function(){a.insertAfter(h,d);d.parentNode.removeChild(d);var j=new YAHOO.util.Anim(h,{opacity:{to:1}},0.1);j.onComplete.subscribe(function(){c.Navigation._fixIEOpacity(h);if(c.PNGLoader){c.PNGLoader.formatTransparentPNGs(h);}if(i){i.success.call(i.context);}});j.animate();});e.animate();}},handleSuccess:function(d){if(b.get(d.argument.params.connectID)===d.argument.ID){this.replaceContent(d.argument.params.connectID,d.responseText);}else{log.debug("Block the currrent replace content request as fresh request has been made for the same Div");}},handleFailure:function(d){},swapWith:function(i,e,h){var f=b.incrementAndGetRequestId();b.set(i,f);if(h){var d=function(j){if(b.get(j.argument.params.connectID)===j.argument.ID){this.replaceContent(j.argument.params.connectID,j.responseText,h);}else{log.debug("Block the currrent replace content request as fresh request has been made for the same Div");}};var g=function(j){c.Navigation.handleFailure(j);h.failure.call(h.context,j);};c.getData(e,null,null,f,{connectID:i},d,g,c.Navigation);}else{c.getData(e,null,null,f,{connectID:i},c.Navigation.handleSuccess,c.Navigation.handleFailure,c.Navigation);}}};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/urlManager-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=YAHOO.widget;var h=getPackageForName("com.forddirect.ng.wtk");var a=getPackageForName("com.forddirect.ng.widgets");var d=getPackageForName("com.forddirect.ng.context");var g=getPackageForName("com.forddirect.ng.views");h.URLManager=function(){YAHOO.Bubbling.addDefaultAction("featurenavigation",this.handleFeatureAction,this,true);};var e=h.URLManager.prototype;e.navigateToFeature=function(j){var k=_widgets.context.SelectedContext;var l=_widgets.context.AvailableContext;var m=k.get("site.currentView");var i=l.get("site.views");if(j){if("features"===m){YAHOO.util.History.navigate(__params.anchorPage,j);}else{if("innovation-features"===m){YAHOO.util.History.navigate(__params.anchorPage,j);}else{window.location=i.features+"?"+i.urlParams+"#"+__params.anchorPage+"="+j;}}}};e.handleFeatureAction=function(l,j){var i=j[1].anchor;var o=false;var m=_widgets.context.SelectedContext;if(i){var k;if(i.getAttribute("rel")=="feature"){k=i.getAttribute("feature");}else{if(i.rel=="category"){var n=i.getAttribute("category");k=n;}}_instances.urlManager.navigateToFeature(k);j[1].decrepitate=true;j[1].stop=true;o=true;}return o;};e.getBookmarkedState=function(){return YAHOO.util.History.getCurrentState(__params.anchorPage);};e.navigate=function(i){YAHOO.util.History.navigate(__params.anchorPage,i);};_instances.urlManager=new h.URLManager();})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/animation-min.js */
(function(){var e=YAHOO.util;var d=e.Dom;var f=YAHOO.lang;var a=e.Anim;var c=e.CustomEvent;var g=getPackageForName("com.forddirect.ng.util");g.Animation={};var b=function(h){h=h?d.get(h):null;if(h&&h.style.filter){h.style.filter="";}};g.Animation.resetScroll=function(k){var h=40;var j=Math.ceil(d.getDocumentScrollTop()/50);function i(){var l=d.getDocumentScrollLeft();var m=d.getDocumentScrollTop();if(m>0){window.scrollTo(l,Math.min(0,m-j));setTimeout(i,h);}}setTimeout(i,h);};g.Animation.animate=function(i,o){var p=d.get(i);var m=(o.attributes)?o.attributes:{opacity:{to:0}};var k=(o.duration)?o.duration:0.4;var j=(o.onCompleteHandler)?o.onCompleteHandler:null;if(p){var l=new a(p,m,k);if(j){var n=o.obj||null;var h=o.override?o.override:false;l.subscribe(j,n,h);}l.animate();}};g.Animation.fadeAndHide=function(h){var i=function(){this._prevDisplay=this.style.display;d.setStyle(this,"display","none");};g.Animation.animate(h,{attributes:{opacity:{to:0}},onCompleteHandler:i,obj:h,override:true});};g.Animation.displayAndFade=function(h){var i="";if(h._prevDisplay){i=h._prevDisplay;delete h._prevDisplay;}g.Animation.animate(h,{attributes:{opacity:{to:1}},onCompleteHandler:b,obj:h});};g.Animation.toggleBlocks=function(l,i){var k=d.get(l);if(k){var j=new a(k,{opacity:{to:0}},0.2);var h=new a(k,{opacity:{to:1}},0.2);if(d.getStyle(k,"opacity")!==0){j.onComplete.subscribe(function(){k.style.display="none";if(typeof(i)!="undefined"){i("fadeOut");}});j.animate();}else{k.style.display="block";h.onComplete.subscribe(function(){b(k);if(typeof(i)!="undefined"){i("fadeIn");}});h.animate();}}};g.AnimAll=function(l,k,h){log.debug("Instantiating new AnimAll.");var i=false;var j=null;this.useSeconds=true;this.pendingAnimations=0;this.animations=[];this.doComplete=function(){if(!this.isAnimated()){return false;}i=false;var m=new Date()-j;j=null;var n={totalDuration:m};this.onComplete.fire(n);return true;};this.isAnimated=function(){return i;};this.handleComplete=function(){this.pendingAnimations--;if(this.pendingAnimations<=0){this.doComplete();}};this.animate=function(){log.debug("Animating composite animation.");if(this.isAnimated()){return false;}i=true;j=new Date();for(var m=0;m<this.animations.length;m++){var n=this.animations[m];n.animate();}return true;};this.registerAnimation=function(o,n,p,q){var m=new a(o,n,p,q);m.useSeconds=this.useSeconds;m.onComplete.subscribe(this.handleComplete,this,true);this.animations.push(m);this.pendingAnimations=this.animations.length;};this.addConstituents=function(o,q){var p=o.els||[];var m=o.attributes||{};var r=o.method||null;for(var n=0;n<p.length;n++){this.registerAnimation(p[n],m,q,r);}};this.init=function(p,o,m){log.debug("Initializing AnimAll.");if(m&&m.useSeconds){this.useSeconds=m.useSeconds;}if(f.isArray(p)){log.debug("Adding constituents from a list of object groups.");for(var n=0;n<p.length;n++){this.addConstituents(p[n],o);}}else{log.debug("Adding constituents from a single object group.");this.addConstituents(p,o);}};this.onStart=new c("start",this);this.onComplete=new c("complete",this);this.init(l,k,h);};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/context-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var e=YAHOO.widget;var d=YAHOO.lang;var f=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");f.ArrayAttribute=function(h,g){f.ArrayAttribute.superclass.constructor.apply(this,arguments);log.debug("Creating array attribute '"+this.name+"'.");};YAHOO.extend(f.ArrayAttribute,YAHOO.util.Attribute,{createPositionalEvent:function(g,i){var h={type:this.name+i,prevValue:this.getValue(),newValue:null,value:null,position:g};h.toString=function(){return"{type:"+this.type+";prevValue:"+this.prevValue+"; newValue:"+this.newValue+"; value:"+this.value+"; position:"+this.position+"}";};return h;},modify:function(g,k,h,l){log.debug("... requested modification of type '"+k+"' at position '"+g+"'.");var i=this.createPositionalEvent(g,k);if(!h){var j=this.owner.fireBeforeEvent(i);if(j===false){log.debug("... change rejected. Aborting.");return false;}}try{this.owner.eventSubtype=k;i.newValue=i.prevValue.slice();i.value=l(i.newValue);if(!this.setValue(i.newValue)){log.debug("... failed to set new value.");return false;}}finally{if(this.owner.eventSubtype){delete this.owner.eventSubtype;}}if(!h){return this.owner.fireAfterEvent(i);}return true;},unshift:function(h,g){this.modify(0,"Add",g,function(i){i.unshift(h);return h;});},shift:function(g){return this.modify(0,"Remove",g,function(h){return h.shift();});},push:function(h,g){return this.modify(this.value.length,"Add",g,function(i){i.push(h);return h;});},pop:function(g){return this.modify(this.value.length,"Remove",g,function(h){return h.pop();});},remove:function(i,g){var h=f.Array.indexOf(this.value,i);if(h<0){return false;}return this.modify(h,"Remove",g,function(j){j.splice(h,1);return i;});}});f.AttributeProvider=function(){f.AttributeProvider.superclass.constructor.call(this,arguments);};YAHOO.extend(f.AttributeProvider,YAHOO.util.AttributeProvider,{createAttribute:function(g){return(g&&g.asArray)?new f.ArrayAttribute(g,this):f.AttributeProvider.superclass.createAttribute.apply(this,arguments);},fireBeforeEvent:function(i){var h="before"+i.type.charAt(0).toUpperCase()+i.type.substr(1);var g={};YAHOO.lang.augmentObject(g,i,true);g.type=h;log.debug("Firing before event '"+g+"'.");return this.fireEvent(h,g);},fireBeforeChangeEvent:function(g){if(this.eventSubtype){g.subtype=this.eventSubtype;}f.AttributeProvider.superclass.fireBeforeChangeEvent.apply(this,arguments);},fireAfterEvent:function(g){return this.fireEvent(g.type,g);},fireChangeEvent:function(g){if(this.eventSubtype){g.subtype=this.eventSubtype;}f.AttributeProvider.superclass.fireChangeEvent.apply(this,arguments);},delegate:function(j,k,g,l){this._configs=this._configs||{};var i=this._configs[j];if(!i||!(i[k])){log.debug("Cannot find config delegate for key '"+j+"' and method '"+k+"'.");return undefined;}var h=!l?[g]:[l,g];return i[k].apply(i,h);},push:function(h,i,g){return this.delegate(h,"push",g,i);},unshift:function(h,g){return this.delegate(h,"unshift",g);},shift:function(h,i,g){return this.delegate(h,"shift",g,i);},pop:function(h,g){return this.delegate(h,"pop",g);},remove:function(h,i,g){return this.delegate(h,"remove",g,i);}});a.BaseContext=function(g){log.debug(".. constructing base context.");this.initCalled=false;this.CONFIG_DATA={config:{validator:d.isString}};};a.BaseContext.prototype={init:function(g){log.debug("... initializing base context.");if(!this.initCalled){for(var i in this.CONFIG_DATA){var h=this.CONFIG_DATA[i];log.debug("... adding attribute '"+i+"'.");d.augmentObject(h,this.defaultConfig);this.register(i,h);}this.importDataSet();this.initCalled=true;}}};a.BaseContext.prototype.id="base";a.BaseContext.prototype.defaultConfig={readOnly:false};a.BaseContext.prototype.lastAccessedURL="";a.BaseContext.prototype.importDataSet=function(){var h=this.id;if(dataset[h]){for(var i in dataset[h]){var g={value:dataset[h][i]};d.augmentObject(g,this.defaultConfig);this.register(i,g);}delete (dataset[h]);}};a.BaseContext.prototype.setDataFromJSON=function(n){if(n&&n.dataset&&n.dataset[this.id]){var k=n.dataset[this.id];var h=this.getAttributeKeys();var l={};for(var j=0;j<h.length;j++){l[h[j]]=h[j];}for(var m in k){if(l[m]){this.set(m,k[m]);}else{var g={value:k[m]};d.augmentObject(g,this.defaultConfig);this.register(m,g);}}}};a.BaseContext.prototype.getDataURL=function(){var g=(_widgets.context.SiteContext.getContextualBaseURL())?_widgets.context.SiteContext.getContextualBaseURL()+"?":document.URL+((document.URL).match("\\?")?"&":"?");return g+"block=widgetData&context="+this.id;};a.BaseContext.prototype.refreshData=function(){var g=this.getDataURL();if(g!=this.lastAccessedURL){f.getData(g,null,null,this.id,null,this.onDataRetrieval,this.onDataFailure,this);this.lastAccessedURL=g;}};a.BaseContext.prototype.onDataRetrieval=function(h){var g=h.responseText;var i=JSON.parse(g);this.setDataFromJSON(i);};a.BaseContext.prototype.onDataFailure=function(){};YAHOO.lang.augmentProto(a.BaseContext,f.AttributeProvider);})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/user-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=YAHOO.widget;var e=YAHOO.lang;var g=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");a.UserContext=function(h){log.debug("Creating User Data context.");this.onInvalidZipCode=new YAHOO.util.CustomEvent("verifyZipCode",this);a.UserContext.superclass.constructor.call(this);e.augmentObject(this.CONFIG_DATA,{zipcode:{value:"",validator:this.validateZIPCode}},true);};YAHOO.extend(a.UserContext,a.BaseContext,{init:function(h){log.debug("Initializing User Data context.");a.UserContext.superclass.init.call(this,h);log.debug("... subscribing to ZIP Code update event.");this.subscribe("zipcodeChange",this.onZipCodeSet,{},this);if(h&&h.zipcode){log.debug("... initializing ZIP code to '"+h.zipcode+"'.");this.set("zipcode",h.zipcode);}},setZipCode:function(h){var i="/services/geo/PostalCodes?postalCode="+h;log.debug("Launching zipcode validation request to '"+i+"'.");g.getData(i,null,null,this.id,h,function(j){log.debug("Received "+j.status+".");this.set("zipcode",j.argument.params);},function(j){log.debug("Failed to retreive data from the service. Received status '"+j.status+"' and text '"+j.responseText+"'.");this.onInvalidZipCode.fire();},this);},onZipCodeSet:function(){var h=this.get("zipcode");_instances.cookieUtils.setZipcode(h);},validateZIPCode:function(i){if(!e.isString(i)){return false;}var h=/^\d{5}$/;return h.test(i);}});var d=a.UserContext.prototype;d.id="user";})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/local-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=YAHOO.widget;var e=YAHOO.lang;var g=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");a.LocalContext=function(h){a.LocalContext.superclass.constructor.call(this);e.augmentObject(this.CONFIG_DATA,{inventoryCount:{value:null},incentives:{value:null}});_instances.bsLoader.initCompleteEvent.subscribe(this.refreshData,this,true);};YAHOO.extend(a.LocalContext,a.BaseContext,{init:function(h){log.debug("Initializing Local Data context.");a.LocalContext.superclass.init.call(this,h);_widgets.context.UserContext.subscribe("zipcodeChange",this.refreshData,this,true);}});var d=a.LocalContext.prototype;d.id="local";d.getDataURL=function(){var h=_widgets.context.UserContext.get("zipcode")||"";var i=(_widgets.context.SiteContext.getContextualBaseURL())?_widgets.context.SiteContext.getContextualBaseURL()+"?":document.URL+((document.URL).match("\\?")?"&":"?");return i+"block=widgetData&context="+this.id+"&zipcode="+h;};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/available-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=YAHOO.widget;var e=YAHOO.lang;var g=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");a.AvailableContext=function(h){a.AvailableContext.superclass.constructor.call(this);};YAHOO.extend(a.AvailableContext,a.BaseContext,{init:function(h){a.AvailableContext.superclass.init.call(this,h);}});var d=a.AvailableContext.prototype;d.id="available";d.defaultConfig={readOnly:true};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/selected-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=YAHOO.widget;var e=YAHOO.lang;var g=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");a.SelectedContext=function(h){log.debug("Creating Selected data context.");a.SelectedContext.superclass.constructor.call(this);e.augmentObject(this.CONFIG_DATA,{feature:{validator:e.isObject,value:{category:"",id:""}},trims:{validator:e.isArray,asArray:true},highlight:{validator:function(i){return e.isNull(i)||e.isString(i);},value:null},featureMedia:{validator:function(i){return e.isNull(i)||e.isString(i);},value:null},innovationMedia:{validator:e.isObject,value:null}},true);};e.extend(a.SelectedContext,a.BaseContext,{init:function(h){log.debug("Initializing Selected Data context.");if(!this.initCalled){a.SelectedContext.superclass.init.call(this,h);}}});var d=a.SelectedContext.prototype;d.id="selected";})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/disclaimer-data-min.js */
(function(){var f=YAHOO.util.Dom;var e=YAHOO.util.Event;var g=YAHOO.widget;var a=YAHOO.lang;var h=getPackageForName("com.forddirect.ng.util");var i=getPackageForName("com.forddirect.ng.context");var b="com.forddirect.ng.widgets";var c=getPackageForName(b);i.DisclaimerContext=function(j){log.debug("Creating Disclaimer data context.");i.DisclaimerContext.superclass.constructor.call(this);this.onFootnoteAdded=new YAHOO.util.CustomEvent("footnoteAdded",this);};a.extend(i.DisclaimerContext,i.BaseContext,{init:function(j){if(!this.isInitialized){i.DisclaimerContext.superclass.init.call(this,j);}log.debug("Initializing Disclaimer Data context.");this.map=new i.DisclaimerMap();this.setFootnotesForKnownDisclaimers();if(c.Disclaimer){var k=new c.Disclaimer();k.registerDisclaimers(f.get("page"));}}});var d=i.DisclaimerContext.prototype;d.id="disclaimer";d.setFootnotesForKnownDisclaimers=function(){var j=_widgets.context.DisclaimerContext.get("globalDisclaimers");for(var l in j){var k=this.map.newFootnoteIndicator();this.map.setFootnote(j[l].id,k);this.map.addDisclaimerForId(j[l].id,j[l].value);}};d.updateDisclaimers=function(n,m){this.map.setStartFootNote();var k;var j;var o={};for(var l in n){j=n[l];if(!this.map.hasDisclaimer(j)){k=this.map.newFootnoteIndicator();this.map.setFootnote(j,k);}k=this.map.getFootnote(j);o[j]=k;}this.fireRefreshDisclaimers(o,m);};d.fireRefreshDisclaimers=function(j,k){this.onFootnoteAdded.fire(j,k);};})();(function(){var f=YAHOO.util.Dom;var e=YAHOO.util.Event;var g=YAHOO.widget;var a=YAHOO.lang;var h=getPackageForName("com.forddirect.ng.util");var i=getPackageForName("com.forddirect.ng.context");var b="com.forddirect.ng.widgets";var c=getPackageForName(b);i.DisclaimerMap=function(j){log.debug("Creating Disclaimer data context.");this.nextfootnoteIndicator=0;this.disclaimerFootNote={};this.disclaimer={};};var d=i.DisclaimerMap.prototype;d.newFootnoteIndicator=function(){this.nextfootnoteIndicator=this.nextfootnoteIndicator+1;return this.nextfootnoteIndicator;};d.setFootnote=function(j,k){this.disclaimerFootNote[j]=k;};d.hasDisclaimer=function(j){return this.disclaimer[j];};d.getFootnote=function(j){return this.disclaimerFootNote[j];};d.addDisclaimerForId=function(j,k){this.disclaimer[j]=k;};d.setStartFootNote=function(){var k=0;for(var j in this.disclaimer){k++;}this.nextfootnoteIndicator=k;};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/pricing-data-min.js */
(function(){var a=YAHOO.DHTMLForms;var d=YAHOO.util.Dom;var c=YAHOO.util.Event;var g=YAHOO.widget;var f=YAHOO.lang;var h=getPackageForName("com.forddirect.ng.util");var b=getPackageForName("com.forddirect.ng.context");b.PricingContext=function(i){log.debug("Creating Pricing data context.");b.PricingContext.superclass.constructor.call(this);this.APR_OPTIONS={SPECIAL_RATE:"specialRate",USER_RATE:"userRate"};f.augmentObject(this.CONFIG_DATA,{trimsPricingData:{value:""},pricingData:{value:""},pricingCount:{value:1},paymentData:{validator:f.isObject,value:this.paymentData},paymentType:{value:null},isJSONAvailable:{validator:f.isBoolean,value:true},fordCreditLink:{value:null}},true);};YAHOO.extend(b.PricingContext,b.BaseContext,{init:function(i){log.debug("Initializing Pricing Data context.");if(!this.initCalled){b.PricingContext.superclass.init.call(this,i);}}});var e=b.PricingContext.prototype;e.id="pricing";e.updatePricing=function(i){var k=_widgets.context.SelectedContext.get("nameplate.sitemap");if(k&&k.shoppingtools&&k.shoppingtools.paymentestimator){var j=k.shoppingtools.paymentestimator.url;h.getData(j+"?block=pricing-data&zipcode="+i,null,null,this.id,null,this.onDataRetrieval,this.onDataFailure,this);}};e.onDataRetrieval=function(j){var i=j.responseText;this.responseJSON=JSON.parse(i);this.set("trimsPricingData",this.responseJSON.local["Response"]);};e.setTrimAsBase=function(j){var i=this.get("trimsPricingData")[j];if(i){this.set("pricingData",i);this.setPaymentData();this.set("pricingCount",this.get("pricingCount")+1);return true;}else{return false;}};e.onDataFailure=function(){log.debug("Failed to retreive data from the service");this.set("isJSONAvailable",false);};e.paymentData={finance:{estimatedCost:0,downPayment:0,tradeIn:0,apr:4.9,aprOption:"userRate",term:60},lease:{estimatedCost:0,downPayment:0,tradeIn:0,annualMiles:1500,term:60}};e.getCurrentSelectedOption=function(){return this.get("paymentType");};e.setCurrentSelectedOption=function(i){this.selectedOption=i;this.set("paymentType",i);};e.calculatePayment=function(j,i){if("finance"===j){return this.calculateFinancePayment();}return this.calculateLeasePayment(i);};e.calculateFinancePayment=function(){var l=this.get("paymentData")["finance"];var k="";var n=parseFloat(this.getEstimatedSellingPrice());var i=parseFloat(this.getTotalFinanceIncentives());var m=n-l.downPayment-l.tradeIn-i;var j=l.apr/1200;if(0===j){k=m/l.term;}else{k=(j*m)/(1-Math.pow(1/(1+j),l.term));}log.debug("Returning EMI = "+Math.ceil(k));return{emi:Math.ceil(k)};};e.calculateLeasePayment=function(x){log.debug("PE::Calculating payment"+x+" "+this.getVehicleMSRP());var q=this.get("paymentData")["lease"];var w=this.get("pricingData")["paymentEstimator"]["leasePayment"];this.m_pepDiscount=0;this.m_ttlRate=0;var o="";if("undefined"===typeof(x)){x=this.getVehicleMSRP();}var u=parseFloat(this.getEstimatedSellingPrice());var r=parseFloat(this.getTotalLeaseIncentives());var t=u*(1+this.m_ttlRate/100)-q.downPayment-q.tradeIn-r;var m=this.getLeaseTermMap()[q.term]["residual"];m+=this.getAdjustments()[(q.annualMiles).toString()];var k=(x+this.m_pepDiscount)*(m/100);var p=this.getLeaseTermMap()[q.term]["apr"]/1200;var n=Math.pow(1+p,q.term);var i=(t*n-k)*p;var j=(n-1)*(1+p);o=i/j;o=Math.ceil(o);var l=Math.ceil(o/25);var s=l*25;var v=o+parseInt(q.downPayment)+parseInt(q.tradeIn)+parseInt(w.acquisitionFee);log.debug("Returning emi = "+s);return{emi:o,lev:k,signingAmount:v,securityDeposit:s};};e.getEstimatedSellingPrice=function(){return this.get("paymentData")[this.getCurrentSelectedOption()]["estimatedCost"];};e.setPaymentData=function(){this.isLeaseDataAvailable=true;this.paymentData.finance["estimatedCost"]=this.getDefaultEstimatedCost();var i=0;if(this.get("pricingData")["paymentEstimator"]["buyPayment"]["defaultAPRTerm"]===undefined||this.get("pricingData")["paymentEstimator"]["buyPayment"]["defaultAPRTerm"]==="0"){i=this.get("pricingData")["paymentEstimator"]["buyPayment"]["defaultCashTerm"];}else{i=this.get("pricingData")["paymentEstimator"]["buyPayment"]["defaultAPRTerm"];}this.paymentData.finance["apr"]=this.getAPRByTerm(i);this.paymentData.finance["term"]=i;this.paymentData.finance["downPayment"]=this.getDefaultDownPayment();this.paymentData.finance["tradeIn"]="0";if(this.get("pricingData")["paymentEstimator"]["buyPayment"]["aprTerms"]!==undefined){this.paymentData.finance["aprOption"]=this.APR_OPTIONS.SPECIAL_RATE;}else{this.paymentData.finance["aprOption"]=this.APR_OPTIONS.USER_RATE;}this.paymentData.lease["estimatedCost"]=this.getDefaultEstimatedCost();this.paymentData.lease["annualMiles"]=this.get("pricingData")["paymentEstimator"]["leasePayment"]["defaultAnnualMileage"];this.paymentData.lease["downPayment"]=this.getDefaultDownPayment();this.paymentData.lease["term"]=this.get("pricingData")["paymentEstimator"]["leasePayment"]["defaultTerm"];this.paymentData.lease["tradeIn"]="0";this.set("paymentData",this.paymentData);};e.getBestLeaseOffer=function(){this.setPaymentData();this.setCurrentSelectedOption("lease");var q=this.get("pricingData")["paymentEstimator"]["leasePayment"]["annualMileageAdjustments"];var k=this.getLeastMileage(q);this.paymentData.lease["annualMiles"]=k;var j=this.get("pricingData")["paymentEstimator"]["leasePayment"]["leaseTerms"];var l=null;var r=null;var i=null;for(var m in j){var n=j[m]["term"];this.paymentData.lease["term"]=n;var p=this.calculateLeasePayment();var o=p.emi;if((!isNaN(o))&&(l===null||l>o)){l=o;r=n;i=p.signingAmount;}}return{offer:l,term:r,annualMiles:k,signingAmount:i,type:"lease"};};e.getBestFinanceOffer=function(){this.setPaymentData();this.setCurrentSelectedOption("finance");var j=this.get("pricingData")["paymentEstimator"]["buyPayment"]["aprTerms"];var l=null;var p=null;var k=null;if(j){for(var i in j){if(j[i]["aPR"]){var m=j[i]["aPR"];var o=j[i]["term"];this.paymentData.finance["apr"]=m;this.paymentData.finance["aprOption"]=this.APR_OPTIONS.SPECIAL_RATE;this.paymentData.finance["term"]=o;var n=this.calculateFinancePayment()["emi"];if(!isNaN(n)&&(l===null||l>n)){l=n;p=o;k=m;}}}}return{offer:l,term:p,apr:k,type:"finance"};};e.getBestOffer=function(){var i=this.getBestLeaseOffer();var j=this.getBestFinanceOffer();if(i.offer&&(!j.offer||i.offer<j.offer)){return i;}else{return j;}};e.getBestOfferAmongTrims=function(){var j=this.get("trimsPricingData");var l=null;var i=null;for(var k in j){this.setTrimAsBase(k);var m=this.getBestOffer();if(m.offer&&(l===null||m.offer<l)){i=m;l=m.offer;}}return i;};e.getLeastMileage=function(l){var i=null;for(var k in l){var j=parseFloat(l[k]["mileage"]);if(i===null||i>j){i=j;}}return i;};e.parsePlanTypeCookie=function(i){if(null===i){return null;}if((new RegExp(this.planConstants.AZ_PLAN_LABEL)).test(i)){return this.planConstants.AZ_PLAN_STR;}else{if((new RegExp(this.planConstants.X_PLAN_LABEL)).test(i)){return this.planConstants.X_PLAN_STR;}}return null;};e.planConstants={AZ_PLAN_LABEL:"A/Z-Plan",X_PLAN_LABEL:"X-Plan",AZ_PLAN_STR:"AZ",X_PLAN_STR:"X",BASE:"BASE"};e.getVehiclePrice=function(i,j,k){this.paymentData=this.get("paymentData");if("undefined"===typeof(j)){j=this.getCurrentSelectedOption();}if("undefined"===typeof(k)){k=this.paymentData.finance["aprOption"];}var l=this.getVehicleMSRP(i);if("finance"===j){if(this.APR_OPTIONS.SPECIAL_RATE===k){l-=this.getTotalAPRIncentives();}else{l-=this.getTotalCashIncentives();}}else{l-=this.getTotalLeaseIncentives();}return l;};e.getVehicleMSRP=function(i){this.pricingData=this.get("pricingData");if("undefined"===typeof(i)){i=this.getPlanType();}if((this.planConstants.AZ_PLAN_STR===i||this.m_isEmployeePricingEnabled)&&this.pricingData.pricing["aZPlan"]){return parseInt(this.pricingData.pricing["aZPlan"]);}else{if(this.planConstants.X_PLAN_STR===i&&this.pricingData.pricing["baseXPlan"]){return parseInt(this.pricingData.pricing["baseXPlan"])+parseInt(this.pricingData.pricing["destinationDeliveryCharge"]);}}return parseInt(this.pricingData.pricing["mSRP"]);};e.getVehicleBaseMSRP=function(j){var i=this.get("pricingData");if("undefined"===typeof(j)){j=this.getPlanType();}if((this.planConstants.AZ_PLAN_STR===j||this.m_isEmployeePricingEnabled)&&i.pricing["baseAZPlan"]){return parseInt(i.pricing["baseAZPlan"]);}else{if(this.planConstants.X_PLAN_STR===j&&i.pricing["baseXPlan"]){return parseInt(i.pricing["baseXPlan"]);}}return parseInt(i.pricing["baseMSRP"]);};e.getVehicleOptions=function(i){if("undefined"===typeof(i)){i=this.getPlanType();}if((this.planConstants.AZ_PLAN_STR===i||this.m_isEmployeePricingEnabled)&&this.pricingData.pricing["optionsAZPlan"]){return parseInt(this.pricingData.pricing["optionsAZPlan"]);}else{if(this.planConstants.X_PLAN_STR===i&&this.pricingData.pricing["optionsXPlan"]){return parseInt(this.pricingData.pricing["optionsXPlan"]);}}return parseInt(this.pricingData.pricing["options"]);};e.getPlanType=function(){var i=_instances.cookieManager.readCookie("planType");if("undefined"===typeof(i)||!i){i=this.planConstants.BASE;}return i;};e.getTotalAPRIncentives=function(){var j=0;var l=this.getAprIncentives();if(l){var k=1;while(l["incentive"+k]!==undefined){j+=parseFloat(l["incentive"+k]["amount"]);k++;}}return j;};e.getTotalCashIncentives=function(){var j=0;var l=this.getCashIncentives();var k=1;if(l){while(l["incentive"+k]!==undefined){j+=parseFloat(l["incentive"+k]["amount"]);k++;}}return j;};e.getTotalFinanceIncentives=function(){if(this.APR_OPTIONS.SPECIAL_RATE===this.paymentData.finance["aprOption"]){return this.getTotalAPRIncentives();}else{return this.getTotalCashIncentives();}};e.getTotalLeaseIncentives=function(){var j=0;var k=this.getLeaseIncentives();if(k){var l=1;while(k["incentive"+l]!==undefined){j+=parseFloat(k["incentive"+l]["amount"]);l++;}}return j;};e.getIncentives=function(i,j){if("undefined"===typeof i||null===i){i=this.getCurrentSelectedOption();}if("undefined"===typeof j||null===j){j=this.get("paymentData")["finance"]["aprOption"];}if("finance"===i&&this.APR_OPTIONS.SPECIAL_RATE===j){return this.getAprIncentives();}if("finance"===i){return this.getCashIncentives();}return this.getLeaseIncentives();};e.getAprIncentives=function(){this.pricingData=this.get("pricingData")["paymentEstimator"];var i=null;if("undefined"!=typeof(this.pricingData.buyPayment["aprIncentives"])&&"undefined"!=typeof(this.pricingData.buyPayment["aprIncentives"]["incentives"])){i=this.pricingData.buyPayment["aprIncentives"]["incentives"];}return i;};e.getCashIncentives=function(){this.pricingData=this.get("pricingData")["paymentEstimator"];var i=null;if("undefined"!=typeof(this.pricingData.buyPayment["cashIncentives"])&&"undefined"!=typeof(this.pricingData.buyPayment["cashIncentives"]["incentives"])){i=this.pricingData.buyPayment["cashIncentives"]["incentives"];}return i;};e.getLeaseIncentives=function(){this.pricingData=this.get("pricingData")["paymentEstimator"];var i=null;if("undefined"!=typeof(this.pricingData.leasePayment["leaseIncentives"])&&"undefined"!=typeof(this.pricingData.leasePayment["leaseIncentives"]["incentives"])){i=this.pricingData.leasePayment["leaseIncentives"]["incentives"];}return i;};e.getLeaseTermMap=function(){var j=new Object();var l=this.get("pricingData")["paymentEstimator"]["leasePayment"];var k=1;while(l.leaseTerms["leaseTerm"+k]!==undefined){j[k]=l.leaseTerms["leaseTerm"+k]["term"];j[l.leaseTerms["leaseTerm"+k]["term"]]=new Object();j[l.leaseTerms["leaseTerm"+k]["term"]]["apr"]=parseFloat(l.leaseTerms["leaseTerm"+k]["aPR"]);k++;}k=1;if(l.residuals){while(l.residuals["residual"+k]!==undefined){if(typeof(j[l.residuals["residual"+k]["term"]])!="undefined"){j[l.residuals["residual"+k]["term"]]["residual"]=parseInt(l.residuals["residual"+k]["value"]);log.debug("PE::residual="+j[l.residuals["residual"+k]["term"]]["residual"]);}k++;}}return j;};e.getAdjustments=function(){var l=null;l=new Object();this.mileages=null;this.mileages=new Array();var k=this.get("pricingData")["paymentEstimator"]["leasePayment"];var j=1;while(k.annualMileageAdjustments["annualMileageAdjustment"+j]!==undefined){this.mileages[j]=k.annualMileageAdjustments["annualMileageAdjustment"+j]["mileage"];l[this.mileages[j]]=parseFloat(k.annualMileageAdjustments["annualMileageAdjustment"+j]["adjustment"]);j++;}return l;};e.getLeaseAmountDueAtSigning=function(){return 10000;};e.getMaxBuyValueSpecialRate=function(){return this.getVehiclePrice("NET_PRICE","finance",this.APR_OPTIONS.SPECIAL_RATE);};e.getMaxBuyValueStandardRate=function(){return this.getVehiclePrice("NET_PRICE","finance",this.APR_OPTIONS.USER_RATE);};e.getMaxLeaseValue=function(){return this.get("pricingData")["paymentEstimator"]["leasePayment"]["maxCombinedValue"];};e.getAPROption=function(){return this.get("paymentData")["finance"]["aprOption"];};e.getAPRByTerm=function(m){var l="";var k=this.get("pricingData")["paymentEstimator"]["buyPayment"]["aprTerms"];if(k){var j=1;while(k["aprTerm"+j]!==undefined){if(k["aprTerm"+j]["term"]===m){l=k["aprTerm"+j]["aPR"];break;}j++;}}return l;};e.getPriceTypeDisplayName=function(k,j,i){if("undefined"===typeof(i)||null===i){i=this.m_isEmployeePricingEnabled;}if("undefined"===typeof(k)||null===k){k=this.planType;}if("undefined"===typeof(j)||null===j){j=true;}if(this.planConstants.AZ_PLAN_STR===k){return this.planConstants.AZ_PLAN_LABEL;}else{if(this.planConstants.X_PLAN_STR===k){return this.planConstants.X_PLAN_LABEL;}else{if(i){if(j){return"Emp. Net Price *";}else{return"Employee Net Price *";}}}}return"Net Price *";};e.validateDownPayment=function(r,o){var i=(this.get("pricingData"))["paymentEstimator"];var l="";r=parseInt(r,10).toString();var q=r;var m="";if(this.validateDigitsForWholeNum(r)){var j="";for(var n=0;n<r.length;n++){if(r.charAt(n)!="$"&&r.charAt(n)!="+"){j=j+r.charAt(n);}}q=j;m=true;var k="";if(this.getCurrentSelectedOption()==="finance"){k=(this.getAPROption()===this.APR_OPTIONS.SPECIAL_RATE)?this.getMaxBuyValueSpecialRate():this.getMaxBuyValueStandardRate();}else{k=this.getMaxLeaseValue();}if(0>parseFloat(r)){q=this.getDefaultDownPayment();l="ERROR: Please enter a value between $0 and $"+(parseFloat(k)-1-o)+".";m=false;}else{if(o+parseFloat(r)>(parseFloat(k)-1)){q=parseFloat(k)-o-1;var p="finance"===this.getCurrentSelectedOption()?"retail":"lease";l="ERROR: We are unable to calculate a "+p+" payment with the down payment amount you entered. We have adjusted the down payment to an acceptable amount.";m=false;}}}else{q=this.getDefaultDownPayment();l="ERROR: Please enter a numerical value";m=false;}return{success:m,errorMessage:l,downPaymentValue:q};};e.validateTradeIn=function(r,p){var j=this.get("pricingData")["paymentEstimator"];var m="";p=parseInt(p,10).toString();var i=p;var n="";if(this.validateDigits(p)){var k="";for(var o=0;o<p.length;o++){if(p.charAt(o)!="$"&&p.charAt(o)!="+"){k=k+p.charAt(o);}}i=k;n=true;var l="";if(this.getCurrentSelectedOption()==="finance"){l=(this.getAPROption()===this.APR_OPTIONS.SPECIAL_RATE)?this.getMaxBuyValueSpecialRate():this.getMaxBuyValueStandardRate();}else{l=this.getMaxLeaseValue();}if(0>parseFloat(p)){i="0";m="ERROR: Please enter a value between $0 and $"+(parseFloat(l)-1-r)+".";n=false;}else{if(r+parseFloat(p)>(parseFloat(l)-1)){i=parseFloat(l)-1-r;var q="finance"===this.getCurrentSelectedOption()?"retail":"lease";m="ERROR: We are unable to calculate a "+q+" payment with the trade in amount you entered. We have adjusted the trade in value to an acceptable amount.";n=false;}}}else{i="0";m="ERROR: Please enter a numerical value";n=false;}return{success:n,errorMessage:m,tradeInInputValue:i};};e.validateRateInput=function(l){var p=this.get("pricingData")["paymentEstimator"];var m="";var k=l;var o="";if(!this.validateDigitsForRate(l)){k="7";m="ERROR: Please enter a numerical value";o=false;}else{var n="";for(var j=0;j<l.length;j++){if(l.charAt(j)!="%"&&l.charAt(j)!="+"){n=n+l.charAt(j);}}var i=p.buyPayment["maxCustomRate"];if(parseFloat(n)>parseFloat(i)){k=i;m="ERROR: The maximum interest rate allowed is "+i+"%. Please enter an interest rate between 0% and "+i+"%.";o=false;}else{if(0>parseFloat(n)){k="7";m="ERROR: Please enter an interest rate between 0% and "+i+"%.";o=false;}else{k=n;o=true;}}}return{success:o,errorMessage:m,rateInputValue:k};};e.validateDigits=function(i){return(i.toString()).match(/^[+\-]?[0-9]{1,}$/);};e.validateDigitsForWholeNum=function(i){return(i.toString()).match(/^(\+|-)?\d+$/);};e.validateDigitsForRate=function(i){return(i.toString()).match(/^[+\-]?[0-9]{0,3}[.]?[0-9]{1,3}%?$/);};e.getDefaultDownPayment=function(){return Math.round(0.1*this.getVehicleMSRP());};e.getFMCCIncentives=function(){return null;};e.getSubTotal=function(){var i=this.get("paymentData")[this.getCurrentSelectedOption()]["downPayment"];var l=this.get("paymentData")[this.getCurrentSelectedOption()]["tradeIn"];var j=this.getCurrentSelectedOption()==="finance"?this.getTotalFinanceIncentives():this.getTotalLeaseIncentives();var k=parseFloat(this.getEstimatedSellingPrice())-(parseFloat(i)+parseFloat(l)+parseFloat(j));return k;};e.getAdjustedCapitalizedCost=function(){return((this.getFMCCIncentives()!==null)?(this.getSubTotal()-this.getFMCCIncentives()["value"]):this.getSubTotal());};e.getNetPrice=function(){return parseFloat(this.getVehicleBaseMSRP())+parseFloat(this.getDestinationCharges())-parseFloat(this.getTotalCashIncentives());};e.getDestinationCharges=function(){return this.get("pricingData")["pricing"]["destinationDeliveryCharge"];};e.getDefaultEstimatedCost=function(){var j=this.getVehicleBaseMSRP();var i=this.get("pricingData")["pricing"]["destinationDeliveryCharge"];return(parseFloat(j)+parseFloat(i));};e.getDownPaymentPercentage=function(j,k){var i=(j/k)*100;return Math.round(i);};e.getFordCreditLink=function(i,k){var l="";var j=_widgets.context.SelectedContext.get("site.shoppingtools")["applycredit-nameplate"].url;l+=j;l+="&NewUsedIndicator=N&CountryCode=USA";l+="&LanguageCode=en";l+="&InterfaceHomeURL=";l+=__params.baseURL.substring(__params.baseURL.lastIndexOf("/")+1);l+="&dealerDataSW=N";l+=this.getFordCreditLinkModelInfo();if(i){l+=this.getFordCreditParams();}if(k){l+=this.getFordCreditLinkPricingInfo();}this.set(l,l);return l;};e.getFordCreditLinkModelInfo=function(){var i=_widgets.context.SelectedContext.get("nameplate");var j=__params.make;var k=__params.year;var l="";l+="&ModelName="+i;l+="&make="+j+"&modelYear="+k;l+="&zipCode="+_widgets.context.UserContext.get("zipcode");return l;};e.getFordCreditLinkPricingInfo=function(){var m="";var k=this.getCurrentSelectedOption();if(k){var j=this.get("paymentData");var l=null;if(j){var i=this.get("pricingData")["paymentEstimator"];if(k==="lease"){m+="&prodType=Lease";l=j.lease;m+="&leaseRate="+this.getLeaseTermMap()[l.term]["apr"];var n=this.getLeaseTermMap()[l.term]["residual"];m+="&leaseResidualValue="+n;m+="&leaseBaseMiles="+l.annualMiles;m+="&leaseAnnualMileage="+l.annualMiles;m+="&totalMonthlyPayment="+this.calculateLeasePayment()["emi"];if(i.leasePayment["leaseIncentives"]["minExpiryDate"]){m+="&goodThruDate="+i.leasePayment["leaseIncentives"]["minExpiryDate"];}m+="&bonusCash="+this.getTotalLeaseIncentives();}else{if(k==="finance"){m+="&prodType=Buy";l=j.finance;m+="&retailRate="+l.apr;m+="&totalMonthlyPayment="+this.calculateFinancePayment()["emi"];if(i.buyPayment["initiativeEndDate"]){m+="&goodThruDate="+i.buyPayment["initiativeEndDate"];}if("specialRate"==this.getAPROption()){m+="&retailSpecialProgramValue=APR";m+="&bonusCash="+this.getTotalFinanceIncentives();}else{m+="&retailSpecialProgramValue=None";m+="&bonusCash="+this.getTotalCashIncentives();}}}m+="&sellingPrice="+this.getEstimatedSellingPrice();m+="&term="+l.term;m+="&custDownPayment="+l.downPayment;m+="&msrp="+this.getVehicleMSRP();m+="&tradeInDataSW=N&tradeInAmtOwed=0";m+="&mfrRebate=0";if(this.m_isEmployeePricingEnabled){m+="&PurchasePlan=X";m+="&estimatedSellingPrice="+this.getEstimatedSellingPrice();}}}return m;};e.getFordCreditParams=function(){var i=this.get("pricingData");var j="";if(i&&i.paymentEstimator&&i.paymentEstimator.fordCreditParams){j+=i.paymentEstimator.fordCreditParams;}return j;};e.getDefaultCashTerm=function(){return this.get("pricingData")["paymentEstimator"]["buyPayment"]["defaultCashTerm"];};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/site-data-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var e=YAHOO.widget;var d=YAHOO.lang;var f=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.context");a.SiteContext=function(g){log.debug("Creating Site context.");a.SiteContext.superclass.constructor.call(this);d.augmentObject(this.CONFIG_DATA,{domain:{validator:d.isString}},true);};YAHOO.lang.extend(a.SiteContext,a.BaseContext,{init:function(g){log.debug("Initializing Site context.");a.SiteContext.superclass.init.call(this,g);}});a.SiteContext.prototype.id="site";a.SiteContext.prototype.getContextualBaseURL=function(){var g=_widgets.context.AvailableContext.get("site.views");return(g.baseURL&&g.externalURL)?g.baseURL+g.externalURL:null;};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/context/search-data-min.js */
(function(){var q=YAHOO.Bubbling;var f=YAHOO.util;var o=f.Dom;var n=f.Event;var g=YAHOO.widget;var m=YAHOO.lang;var i=getPackageForName("com.forddirect.ng.util");var k=getPackageForName("com.forddirect.ng.context");var a=10;var p="&No=";var j="Redirect";var l="N=8355";var r;var h=/([\?&])N=[0-9]+(&)?/;var d=new RegExp("[\\?&]"+l+"&?");k.SearchLogger=function(){this.dvals="";this.dym_to="";this.autocorrect_to="";this.dims="";this.recordNames="";this.merchandisingRules="";this.merchandisingRulesRecordNames="";this.numRefinements=0;this.debuglogCallback={success:function(s){if(s.responseText){log.trace("Transaction id: "+s.tId);log.trace("  HTTP status:"+s.status);log.trace("  Status code message: "+s.statusText);log.trace("  HTTP headers: <ul>"+s.getAllResponseHeaders);log.trace("  Server response: "+s.responseText);}},failure:function(s){if(s.responseText){log.error("Transaction id: "+s.tId);log.error("  HTTP status:"+s.status);log.error("  Status code message: "+s.statusText);}}};};k.SearchLogger.prototype={getRecordNames:function(v){var t=[];if(v){for(var w=0;w<v.length;w++){var s=v[w];var u=null;var y=s.Properties;var z=m.JSON.stringify(y);z=z.replace(/000_URL/g,"_URL");var x=YAHOO.lang.JSON.parse(z);if(y){u=k.SearchContext.escapeURL(x._URL);}t.push(u);}return t.join(",");}},getMerchandisingRules:function(H){var v=0;if(H){v=H.length;}var x="";var s="";for(var A=0;A<v;A++){var G="";var t="";var C=H[A];var E=C.Properties;var w=C.Records;if(w){for(var y=0;y<w.length;y++){var B=w[y];if(B){var I=B.Properties;var D=YAHOO.lang.JSON.stringify(I);D=D.replace("100_Title","_Title");D=D.replace("000_URL","_URL");var z=YAHOO.lang.JSON.parse(D);if(I){G=z._Title;t=z._URL;}}}}var F=E.BBTitle?E.BBTitle:G;x+=k.SearchContext.escapeTitle(F);var u=E.URL?E.URL:t;s+=k.SearchContext.escapeURL(u);if(A<(v-2)){if(w){x+=",";s+=",";}}}this.merchandisingRulesRecordNames=s;return x;},getDVals:function(s){var u=0;if(s){u=s.length;}var A=0;for(var x=0;x<u;x++){var B=s[x];if(B.SearchTerm){A++;}}var z=A;this.numRefinements=u-z;var C="";var v="";for(var y=z;y<u;y++){if(y>z){C+=",";v+=",";}B=s[y];var G=B.DimensionName;v+=G;C+="/"+G;var F=B.DimensionValues;if(F){var E=F.length-1;for(var w=0;w<F.length;w++){var t=F[w];var D=t.DimValueName.replace(/,/g,"");C+="/"+D+"";if(w<E){C+=",";}}}}this.dims=v;return C;},logSearch:function(y){log.debug("Logging search action.");var x=y.newValue;if(x){this.numberofRecords=x.MetaInfo.TotalNumberofMatchingRecords;var u=x.Breadcrumbs;this.dvals=this.getDVals(u);var t=x.Records;if(t){this.recordNames=this.getRecordNames(t);}var s=x.SupplementalObjects;this.merchandisingRules=this.getMerchandisingRules(s);var w=x.SearchInfo;if(w){if(w.AllText.SpellCorrection){this.autocorrect_to=_widgets.context.SearchContext.get("searchText");}if(w.AllText.DYMInformation){this.dym_to=w.AllText.DYMInformation[0].NewTerm;}}var v=_widgets.context.SearchContext.get("baseURLs").logging;v+="|NUM_RECORDS:"+this.numberofRecords;if(this.autocorrect_to){v+="|AUTOCORRECT_TO:"+this.autocorrect_to;}if(this.dym_to){v+="|DYM_TO:"+this.dym_to;}if(this.dvals){v+="|DVALS:"+this.dvals;}if(this.dims){v+="|DIMS:"+this.dims;}v+="|NUMREFINEMENTS:"+this.numRefinements;if(this.merchandisingRules){v+="|MERCH_RULES:"+this.merchandisingRules;_widgets.context.SearchContext.set("MerchRules",this.merchandisingRules);}if(this.recordNames){v+="|NATURAL_RECORDS:"+this.recordNames;}if(this.merchandisingRulesRecordNames){v+="|FEATURED_RECORDS:"+this.merchandisingRulesRecordNames;}v+="|SESSION_ID:"+_widgets.context.SearchContext.get("sessionID");log.debug("Logging URL: "+v);this.fireRequest(v);}},fireRequest:function(s){YAHOO.util.Connect.initHeader("Pragma","no-cache");YAHOO.util.Connect.asyncRequest("GET",s,this.debuglogCallback);},logNSRResult:function(t,v,s){metricsTracker.searchCurrentResultNumber=""+(s+1);metricsTracker.searchCurrentResult=v;metricsTracker.trackMicroData("naturalSearchResult");var u=_widgets.context.SearchContext.get("baseURLs").logging;u+="|CONVERTED:TRUE";u+="|NUM_RECORDS:"+this.numberofRecords;u+="|RECORD_NAMES:"+v;u+="|SESSION_ID:"+_widgets.context.SearchContext.get("sessionID");u=u.replace(/TYPE:\w*/,"TYPE:R");log.debug("Logging NS result to: "+u);this.fireRequest(u);},logBBResult:function(u,s,t){metricsTracker.searchCurrentResultNumber="best bet "+(t+1);metricsTracker.searchCurrentResult=unescape(u);metricsTracker.trackMicroData("bestBetsResult");var v=_widgets.context.SearchContext.get("baseURLs").logging;v+="|CONVERTED:TRUE";v+="|IN_MERCH:"+unescape(u).replace(/\|/g,"-");v+="|NUM_RECORDS:"+this.numberofRecords;v+="|MERCH_RULES:"+unescape(_widgets.context.SearchContext.get("MerchRules")).replace(/\|/g,"-");v+="|RECORD_NAMES:"+unescape(s);v+="|SESSION_ID:"+_widgets.context.SearchContext.get("sessionID");v=v.replace(/TYPE:\w*/,"TYPE:R");log.debug("Logging BB result to: "+v);this.fireRequest(v);},createHandler:function(t,u){var s=function(w){var v=w.getAttribute("href");var y=w.getAttribute("title");var x=i.Text.asNumber(w.getAttribute("recordCount"));if(y&&v){t.call((u?u:null),k.SearchContext.escapeTitle(y),k.SearchContext.escapeURL(v),x);}else{log.warn("'sitesearch-bestbets' action tied to an element that has an invalid title or href: '"+y+"', '"+v+"'. Skipping logging.");}return false;};return s;}};var e="Buscar";var b="Ingresa palabra clave...";var c=[e,b];k.SearchContext=function(s){log.debug("Creating Search context.");k.SearchContext.superclass.constructor.call(this);m.augmentObject(this.CONFIG_DATA,{content:{value:null,validator:m.isObject},page:{value:0,validator:m.isNumber},totalRecords:{value:0,validator:m.isNumber},bestBetsRecords:{value:0,validator:m.isNumber},baseURLs:{value:null,validator:m.isObject},sessionID:{value:this.getSessionID(),validator:m.isString},MerchRules:{value:null,validator:m.isString},serviceParameters:{value:{},validator:m.isObject},searchText:{value:i.Forms.getParameter("searchInputString",c),validator:m.isString},isSearchWithin:{value:k.SearchContext.isSearchWithin(),validator:m.isBoolean},correctedText:{value:null,validator:m.isString},searchWithinText:{value:i.Forms.getParameter("searchWithinInputString",c),validator:m.isString},searchRedirectText:{value:null,validator:m.isString},searchMode:{value:"mode+matchallany",validator:m.isString},autocorrection:{value:null}});};YAHOO.extend(k.SearchContext,k.BaseContext,{DEFAULT_SEARCH_STRING:e,DEFAULT_NOWORD_STRING:b,DEFAULT_VALUES:c,init:function(s){log.debug("Initializing Search Context.");k.SearchContext.superclass.init.call(this,s);var u=_widgets.context.SiteContext.get("search.baseURLs");log.debug("Search urls:");if(u){for(var t in u){log.debug("... '"+t+"': '"+u[t]+"'");}this.set("baseURLs",u);}else{log.error("Unable to find base URLs in site context.");}this.initializeLogger();this.initializeDefaultActions();if(this.logger){this.subscribe("contentChange",this.handleContentUpdate,this,true);}this.subscribe("pageChange",this.handlePageChange,this,true);this.subscribe("baseURLsChange",this.initializeDisplay,this,true);_instances.bsLoader.browserHistoryChange.subscribe(i.X.wrap(this.handleHistoryNavigation,this));log.debug("Initializing current page.");this.initializeDisplay({newValue:u});},initializeDisplay:function(v){var u=v.newValue;var s=_instances.urlManager.getBookmarkedState();var t=s?i.Text.asNumber(s):0;this.initializeDataSource(u);this.set("page",t);},initializeDataSource:function(t){if(t){var s=t.search;if(s){if(this.dataSource){this.dataSource=null;}this.dataSource=new f.DataSource(s);m.augmentObject(this.dataSource,{responseType:f.DataSource.TYPE_JSON,responseSchema:{resultsList:"Response"},doBeforeParseData:function(w,v,u){return{Response:v};},parseJSONData:function(x,v){var A=0;try{if(v.Response.MetaInfo.TotalNumberofMatchingRecords){A=i.Text.asNumber(v.Response.MetaInfo.TotalNumberofMatchingRecords);}}catch(z){log.debug("Failed to parse search results; may be benign.",z);A=0;}var u=v.Response.SupplementalObjects;var w=null;if(u){w=u[0].Properties.Title;}var y=this.constructor.superclass.parseJSONData.apply(this,arguments);if(!A&&!d.test(this.liveData)&&!k.SearchContext.isSearchWithin()){if(w!=j){y.error=true;y.errorCode="EMPTY_RESPONSE";}}return y;}},true);}else{log.warn("Unable to find base URL for search results. Some search functionality will be unavailable.");}}else{log.error("No base URLs passed to data source initializer.");}},handleContentUpdate:function(w){var v=w.newValue;if(v){var u=v.SearchInfo;if(u){if(u.AllText.SpellCorrection&&!k.SearchContext.isSearchWithin()){this.set("correctedText",u.AllText.SearchTerm);var t=u.AllText.SpellCorrection[0].NewTerm;t=t.replace(/\"/g,"");if(i.Text.equalsIgnoreCase(u.AllText.SearchTerm,t)){this.set("searchText",u.AllText.SearchTerm);}else{this.set("searchText",u.AllText.SpellCorrection[0].NewTerm);}}}var x=i.Text.asNumber(v.MetaInfo.TotalNumberofMatchingRecords);this.set("totalRecords",x);try{metricsTracker.trackMacroData("searchResults");}catch(w){log.warn("Unable to log Omniture metrics for search results page.",w);}var s=parseInt(v.MetaInfo.TotalNumberofMatchingRecords,10);this.set("totalRecords",s);}this.logger.logSearch(w);},getAutocompleteDataSource:function(){var s=null;var t=this.get("baseURLs");if(t){var u=t.autocomplete;if(u){s=new f.DataSource(u);s.responseType=YAHOO.util.XHRDataSource.TYPE_JSON;s.responseSchema={resultsList:"DimensionSearch[0].Locations",fields:["Location[0].DimValueName"]};s.makeConnection=i.X.wrap(s.makeConnection,s,function(v){log.warn("Failed to connect to autocompletion resource.",v);});}}return s;},initializeLogger:function(){var s=this.get("baseURLs");if(s){var t=s.logging;if(t){this.logger=new k.SearchLogger(t);}}},initializeDefaultActions:function(){q.addDefaultAction("bestbet",i.Actions.newHandler(function(s,t){return this.createHandler(this.logBBResult,this)(s);},this.logger));q.addDefaultAction("natural-search",i.Actions.newHandler(function(s,t){return this.createHandler(this.logNSRResult,this)(s);},this.logger));},handlePageChange:function(s){log.debug("Handling page change to "+s.newValue);this.pageTo(s.newValue);},pageTo:function(s){if(this.dataSource){log.debug("Changing to page '"+s+"'.");var u=s*a;var t=p+u;log.debug("Sending request for '"+t+"' to data source.");this.dataSource.sendRequest(t,{success:this.handleDataRefresh,failure:this.handleDataFailure,scope:this});}else{log.debug("Search context ignoring pagination request; no data source available. This is expected on non-search pages.");}},handleDataRefresh:function(u,s,t){log.debug("... received response.");log.debug("... "+m.JSON.stringify(s));try{if(s&&s.results&&s.results[0]){this.set("content",s.results[0]);}else{log.warn("Received empty response.");}}catch(v){log.error("Unable to process data refresh.");log.error(v);}},handleDataFailure:function(u,s,t){log.warn("... received failed or empty response.");var y=this.get("baseURLs");if(y){var x=y.search;if(x){if(!d.test(x)){var v=x.replace(h,"$1"+l+"$2");log.debug("Replaced original search URL '"+x+"' with '"+v+"'.");var w={search:v};m.augmentObject(w,y);this.set("baseURLs",w);}}}},triggerSearch:function(s){log.debug("Using search redirection '"+s+"'.");if(s&&!k.SearchContext.isSearchWithin()){if(i.Forms.setParameter("searchInputString",s,this.acceptSearchForm)){i.Forms.submit(this.acceptSearchForm);}else{log.warn("No field values were successfully changed; cannot redirect to new search term '"+s+"'.");}}},isDefaultResults:function(){var s=false;var u=this.get("baseURLs");if(u){var t=u.search;if(t){s=d.test(t);}}return s;},getSessionID:function(){var s=_instances.cookieManager.readCookie("JSSESSIONID");if(!s){s=this.newSessionID();log.debug("Recording session ID '"+s+"' for future search requests.");_instances.cookieManager.setCookie("JSSESSIONID",s);}return s;},newSessionID:function(){return Math.uuid();},newPaginator:function(u){var t={rowsPerPage:a};if(u){log.debug("Customzing pagination options based on factory method parameter.");m.augmentObject(t,u,true);}var v=new g.Paginator(t);var s=new g.Paginator.ui.CurrentPageReport(v);s.render();return{oP:v,oCPR:s};},newTableConfig:function(u,t){var v=this.newPaginator(t);var s={paginator:v.oP,initialRequest:"0",dynamicData:true,generateRequest:k.SearchContext.generateInitialRequest,MSG_ERROR:"Sorry, no results were found that match your request. Please enter a new keyword or select a link above."};if(u){m.augmentObject(s,u,true);}return s;},handleHistoryNavigation:function(t){var u=_instances.urlManager.getBookmarkedState();log.debug("Moving to state '"+u+"'.");var s=i.Text.asNumber(u);this.set("page",s);}});k.SearchContext.generateInitialRequest=function(t,s){var u=0;if(t&&t.pagination){u=(t.pagination.recordOffset/a)||0;}return""+u;};k.SearchContext.generatePagingRequest=function(t,s){t=(t/a)||0;s=s||1;return""+t;};k.SearchContext.escapeURL=function(t){var s=escape(unescape(t).replace("http://","").replace(/[\u2013\u2014]/g,"-").replace(/[=]/g,"-"));return s;};k.SearchContext.escapeTitle=function(t){var s=escape(unescape(t).replace(/:/g,"-").replace(/[\u2013\u2014]/g,"-"));return s;};k.SearchContext.isSearchWithin=function(){return i.Forms.getSessionAttribute("latestSearchWithinText")||null;};k.SearchContext.acceptSearchForm=function(s){return s&&"FORM"===s.tagName&&s.id==="globalSearchForm";};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/metrics/MetricsTracker-min.js */
getPackageForName("com.forddirect.brandsites.metrics").MetricsTracker=function(){var c;this.storeMacroData=function(e){c=e;};this.fireMacroData=function(){this.trackMacroData(c);};this.trackMacroData=function(e){switch(e){case"brandHome":this.brandHome();break;case"fordcreditservices":this.fordcreditservices();break;case"owners":this.owners();break;case"contact":this.contact();break;case"glossary":this.glossary();break;case"privacy":this.privacy();break;case"caprivacy":this.caprivacy();break;case"returnVisitor":this.returnVisitor();break;case"searchResults":this.searchResults();break;case"nameplateOverview":this.nameplateOverview();break;case"video":this.video();break;case"photo":this.photo();break;case"nameplatePricing":this.nameplatePricing();break;case"pricingDetail":this.pricingDetail();break;case"estimateFinance":this.estimateFinance();break;case"estimateLease":this.estimateLease();break;case"pricinghowto":this.pricinghowto();break;case"featureCategoryViewed":this.featureCategoryViewed();break;case"featureSubCategoryViewed":this.featureSubCategoryViewed();break;case"featureVideo":this.featureVideo();break;case"modelsAndOptionPage":this.modelsAndOptionPage();break;case"trimDetails":this.trimDetails();break;case"partDetails":this.partDetails();break;case"comparePage":this.comparePage();break;case"warranty":this.warranty();break;case"vehicle":this.vehicle();break;case"roadside":this.roadside();break;case"emissions":this.emissions();break;case"california":this.california();break;case"extended":this.extended();break;case"techSyncHome":this.techSyncHome();break;case"techSyncVideo":this.techSyncVideo();break;case"aboutTechSync":this.aboutTechSync();break;case"techSyncFeatures":this.techSyncFeatures();break;case"techSyncFeatureDetails":this.techSyncFeatureDetails();break;case"techSyncAvailability":this.techSyncAvailability();break;case"techSyncOwners":this.techSyncOwners();break;default:}};this.trackMicroData=function(e){switch(e){case"itemDetailFlip":this.itemDetailFlip();break;case"carouselIndexClick":this.carouselIndexClick();break;case"carouselArrowClick":this.carouselArrowClick();break;case"home360popup":this.home360popup();break;case"home360rotateClick":this.home360rotateClick();break;case"exteriorColorizer":this.exteriorColorizer();break;case"interiorColorizer":this.interiorColorizer();break;case"fullGuidedTourViewed":this.fullGuidedTourViewed();break;case"engineDetails":this.engineDetails();break;case"cabDetails":this.cabDetails();break;case"driveTrainDetails":this.driveTrainDetails();break;case"axleRationDetails":this.axleRationDetails();break;case"boxDetails":this.boxDetails();break;case"FinancePrint":this.FinancePrint();break;case"LeasePrint":this.LeasePrint();break;case"viewEnlargedImage":this.viewEnlargedImage();break;case"naturalSearchResult":this.naturalSearchResult();break;case"bestBetsResult":this.bestBetsResult();break;case"techSyncReferralExitCreateAccount":this.techSyncReferralExitCreateAccount();break;case"techSyncReferralExitLogin":this.techSyncReferralExitLogin();break;case"techSyncReferralExitAccountBenefits":this.techSyncReferralExitAccountBenefits();break;case"techSyncReferralExitVehicleSupport":this.techSyncReferralExitVehicleSupport();break;case"techSyncReferralExitBestBuy":this.techSyncReferralExitBestBuy();break;case"techSyncReferralExitUpdateSoftware":this.techSyncReferralExitUpdateSoftware();break;case"techSyncFAQ":this.techSyncFAQ();break;case"techSyncCompatibilityChart":this.techSyncCompatibilityChart();break;case"techSyncFeature":this.techSyncFeature();break;default:}};this.brandHome=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: home";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: home";s.prop11="fv: home";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.fordcreditservices=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: fordcreditservices";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: fordcreditservices";s.prop11="fv: fordcreditservices";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.owners=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: owners";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: owners";s.prop11="fv: owners";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.contact=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: contact";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: contact";s.prop11="fv: contact";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.glossary=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: glossary";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: glossary";s.prop11="fv: glossary";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.privacy=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: privacy";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: privacy";s.prop11="fv: privacy";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.caprivacy=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: caprivacy";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: caprivacy";s.prop11="fv: caprivacy";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.returnVisitor=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: home: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: home";s.prop11="fv: home";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("bhp",this.nameplate(),1,this.getBrandType());};this.searchResults=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: site search results: page "+this.searchCurrentPageNumber();s.eVar35=""+this.getSearchCurrentResultNumber()+":"+this.searchTotalResults()+"";s.prop21=""+this.getSearchCurrentResultNumber()+":"+this.searchTotalResults()+"";s.eVar22=""+this.searchQueryTerm()+"";s.prop22=""+this.searchQueryTerm()+"";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.prop34=""+this.searchCurrentPageNumber()+"";s.eVar9="";s.prop9="";s.eVar11="fv: site search results: page "+this.searchCurrentPageNumber()+"";s.prop11="fv: site search results: page "+this.searchCurrentPageNumber()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.nameplateOverview=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: home: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: home";s.prop11="fv: vehicle: home";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("vhp",this.nameplate(),1,this.getBrandType());};this.video=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: home: video: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: home: video";s.prop11="fv: vehicle: home: video";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.photo=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: home: photo: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: home: photo";s.prop11="fv: vehicle: home: photo";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.nameplatePricing=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: home: pricing detail: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: home: pricing detail";s.prop11="fv: vehicle: home: pricing detail";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.pricingDetail=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: pricing: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: pricing";s.prop11="fv: vehicle: pricing";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.estimateFinance=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: pricing: estimate: finance: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: pricing: estimate: finance";s.prop11="fv: vehicle: pricing: estimate: finance";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.estimateLease=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: pricing: estimate: lease: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: pricing: estimate: lease";s.prop11="fv: vehicle: pricing: estimate: lease";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.pricinghowto=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: pricing: howto: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: pricing: howto: "+this.nameplate()+"";s.prop11="fv: vehicle: pricing: howto: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.featureCategoryViewed=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: feature: "+this.featureCategoryName()+": "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: feature: "+this.featureCategoryName()+"";s.prop11="fv: vehicle: feature: "+this.featureCategoryName()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.featureSubCategoryViewed=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+": "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+"";s.prop11="fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.featureVideo=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+": video: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+": video";s.prop11="fv: vehicle: feature: "+this.featureCategoryName()+": "+this.featureName()+": video";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("vidst",this.nameplate(),1,this.getBrandType());};this.modelsAndOptionPage=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: models: select: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: models: select";s.prop11="fv: vehicle: models: select";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.trimDetails=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: models: detail: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: models: detail";s.prop11="fv: vehicle: models: detail";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.partDetails=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: models: detail: "+this.trimDetailCategory()+": "+this.nameplate();s.hier1="vehicle:models:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate()+":"+this.trimDetailCategory()+"";s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: models: detail: "+this.trimDetailCategory()+"";s.prop11="fv: vehicle: models: detail: "+this.trimDetailCategory()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.comparePage=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: models: compare: "+this.compareTabName()+": "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: models: compare: "+this.compareTabName()+"";s.prop11="fv: vehicle: models: compare: "+this.compareTabName()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.warranty=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: shopping tools: warranty: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: shopping tools: warranty: "+this.nameplate()+"";s.prop11="fv: shopping tools: warranty: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.vehicle=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: warranty: vehicle: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: warranty: vehicle: "+this.nameplate()+"";s.prop11="fv: vehicle: warranty: vehicle: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.roadside=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: warranty: roadside: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: warranty: roadside: "+this.nameplate()+"";s.prop11="fv: vehicle: warranty: roadside: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.emissions=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: warranty: emissions: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: warranty: emissions: "+this.nameplate()+"";s.prop11="fv: vehicle: warranty: emissions: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.california=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: warranty: california: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: warranty: california: "+this.nameplate()+"";s.prop11="fv: vehicle: warranty: california: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.extended=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: vehicle: warranty: extended: "+this.nameplate();s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: vehicle: warranty: extended: "+this.nameplate()+"";s.prop11="fv: vehicle: warranty: extended: "+this.nameplate()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();void (s.t());};this.techSyncHome=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: home";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: home";s.prop11="fv: tech: sync: home";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("hp",this.nameplate(),1,this.getBrandType());};this.techSyncVideo=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: video";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: video";s.prop11="fv: tech: sync: video";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("lhvideo",this.nameplate(),1,this.getBrandType());dartTracker.trackEvent("vidst",this.nameplate(),1,this.getBrandType());};this.aboutTechSync=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: about";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: about";s.prop11="fv: tech: sync: about";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("about",this.nameplate(),1,this.getBrandType());};this.techSyncFeatures=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: features";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: features";s.prop11="fv: tech: sync: features";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("feature",this.nameplate(),1,this.getBrandType());};this.techSyncFeatureDetails=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: feature: detail: "+this.syncFeatureName();s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: features: detail";s.prop11="fv: tech: sync: features: detail";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent(""+this.featureTitleTag()+"",this.nameplate(),1,this.getBrandType());};this.techSyncAvailability=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: availability";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: availability";s.prop11="fv: tech: sync: availability";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.events=""+e;}else{}void (s.t());dartTracker.trackEvent("avail",this.nameplate(),1,this.getBrandType());};this.techSyncOwners=function(){this.clearVars();s.pageName=this.getCodeForModel()+"fv: tech: sync: owners";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.eVar11="fv: tech: sync: owners";s.prop11="fv: tech: sync: owners";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();void (s.t());};this.itemDetailFlip=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="item detail: "+this.itemDetailName()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: item detail: "+this.itemDetailName()+": "+this.nameplate());};this.carouselIndexClick=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: carousel";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: carousel: index: "+this.nameplate());};this.carouselArrowClick=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: carousel";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: carousel: page: "+this.nameplate());};this.home360popup=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: 360 popup";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: 360: popup: "+this.nameplate());};this.home360rotateClick=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: 360 rotate";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: 360: rotate: "+this.nameplate());};this.exteriorColorizer=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: colorizer: exterior";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: colorizer: exterior: "+this.nameplate());};this.interiorColorizer=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="home: colorizer: interior";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: home: colorizer: interior: "+this.nameplate());};this.fullGuidedTourViewed=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16,events";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="video: full";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents=""+e+";";s.events=""+e;}else{}s.tl(this,"o",this.fullVideoType());dartTracker.trackEvent("vidcom",this.nameplate(),1,this.getBrandType());};this.engineDetails=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="model compare: engine";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: models: engine: "+this.nameplate());};this.cabDetails=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="model compare: cab";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: models: cab: "+this.nameplate());};this.driveTrainDetails=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="model compare: drivetrain";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: models: drivetrain: "+this.nameplate());};this.axleRationDetails=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="model compare: axle ration";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: models: axle ration: "+this.nameplate());};this.boxDetails=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="model compare: box";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: models: box: "+this.nameplate());};this.FinancePrint=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="vehicle pricing: print finance estimate";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: pricing: finance: print: "+this.nameplate());};this.LeasePrint=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="vehicle pricing: print lease estimate";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: pricing: lease: print: "+this.nameplate());};this.viewEnlargedImage=function(){this.clearVars();s.linkTrackVars="hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="vehicle pricing: view image";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: vehicle: pricing: view image: "+this.nameplate());};this.naturalSearchResult=function(){this.clearVars();s.linkTrackVars="eVar35,prop21,hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,prop34,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.eVar35=""+this.getSearchCurrentResultNumber()+":"+this.searchTotalResults()+"";s.prop21=""+this.getSearchCurrentResultNumber()+":"+this.searchTotalResults()+"";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.prop34=""+this.searchCurrentPageNumber()+"";s.eVar9="";s.prop9="";s.prop5="site search result: natural";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: site search: search index");};this.bestBetsResult=function(){this.clearVars();s.linkTrackVars="eVar35,prop21,hier1,eVar12,prop12,eVar15,prop15,eVar4,prop4,prop34,eVar9,prop9,prop5,eVar14,prop14,channel,eVar16,prop16";s.eVar35=""+this.getSearchCurrentResultNumber()+":"+this.bestBetsResults()+"";s.prop21=""+this.getSearchCurrentResultNumber()+":"+this.bestBetsResults()+"";s.hier1=this.siteLevel();s.eVar12=this.modelYear();s.prop12=this.modelYear();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.prop34=""+this.searchCurrentPageNumber()+"";s.eVar9="";s.prop9="";s.prop5="site search result: best bet";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.eVar16=this.nameplate();s.prop16=this.nameplate();s.tl(this,"o","fv: site search: search index");};this.techSyncReferralExitCreateAccount=function(){this.clearVars();s.linkTrackVars="eVar6,prop6,hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel,events";s.eVar6="smr: create account";s.prop6="smr: create account";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: smr: create account";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents="event4,"+e+";";s.events="event4,"+e;}else{s.linkTrackEvents="event4";s.events="event4";}s.tl(this,"o","referral: exit");};this.techSyncReferralExitLogin=function(){this.clearVars();s.linkTrackVars="eVar6,prop6,hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel,events";s.eVar6="smr: login";s.prop6="smr: login";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: smr: login";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents="event4,"+e+";";s.events="event4,"+e;}else{s.linkTrackEvents="event4";s.events="event4";}s.tl(this,"o","referral: exit");};this.techSyncReferralExitAccountBenefits=function(){this.clearVars();s.linkTrackVars="eVar6,prop6,hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel,events";s.eVar6="smr: account benefits";s.prop6="smr: account benefits";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: smr: account benefits";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents="event4,"+e+";";s.events="event4,"+e;}else{s.linkTrackEvents="event4";s.events="event4";}s.tl(this,"o","referral: exit");};this.techSyncReferralExitVehicleSupport=function(){this.clearVars();s.linkTrackVars="eVar6,prop6,hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel,events";s.eVar6="smr: vehicle support";s.prop6="smr: vehicle support";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: smr: vehicle support";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents="event4,"+e+";";s.events="event4,"+e;}else{s.linkTrackEvents="event4";s.events="event4";}s.tl(this,"o","referral: exit");};this.techSyncReferralExitBestBuy=function(){this.clearVars();s.linkTrackVars="hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: best buy";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.tl(this,"o","referral: exit");};this.techSyncReferralExitUpdateSoftware=function(){this.clearVars();s.linkTrackVars="eVar6,prop6,hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel,events";s.eVar6="smr: update software";s.prop6="smr: update software";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="referral: smr: update software";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();var e="";if(e.length>0){e=e.substring(0,e.length-1);s.linkTrackEvents="event4,"+e+";";s.events="event4,"+e;}else{s.linkTrackEvents="event4";s.events="event4";}s.tl(this,"o","referral: exit");};this.techSyncFAQ=function(){this.clearVars();s.linkTrackVars="hier1,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="sync: faq";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.tl(this,"o","fv: tech: sync: faq");};this.techSyncCompatibilityChart=function(){this.clearVars();s.linkTrackVars="hier1,eVar15,prop15,eVar4,prop4,eVar9,prop9,prop5,eVar14,prop14,channel";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="sync: compatibility chart";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.tl(this,"o","fv: tech: sync: compatibility chart");};this.techSyncFeature=function(){this.clearVars();s.linkTrackVars="hier1,eVar15,prop15,eVar4,prop4,prop11,eVar9,prop9,prop5,eVar14,prop14,channel";s.hier1=this.siteLevel();s.eVar15="fordvehicles.com";s.prop15="fordvehicles.com";s.eVar4=this.userLanguage();s.prop4=this.userLanguage();s.eVar9="";s.prop9="";s.prop5="item detail: "+this.itemDetailName()+"";s.eVar14="ford";s.prop14="ford";s.channel=this.siteSection();s.tl(this,"o","fv: tech: sync: detail: "+this.itemDetailName());};var d;var b;var a;this.getSearchCurrentResultNumber=function(){return this.searchCurrentResultNumber||0;};this.searchQueryTerm=function(){return _widgets.context.SearchContext.get("correctedText")||_widgets.context.SearchContext.get("searchText");};this.modelYear=function(){return __params.year;};this.siteLevel=function(){var f=_widgets.context.SelectedContext.get("currentView");var e;switch(f){case"brand-home":case"welcome-back":e="home";break;case"nameplate-overview":e="vehicle:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"payment-estimator":case"pricing-and-payments-nameplate":e="vehicle:pricing:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"pricing-how-to":e="vehicle:pricing:"+this.modelCategory()+":"+this.nameplate()+":howto";break;case"features":e="vehicle:features:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate()+":"+this.featureCategoryName();break;case"warranty":e="shopping tools:warranty:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"vehicle":e="vehicle:warranty:vehicle:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"roadside":e="vehicle:warranty:roadside:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"emissions":e="vehicle:warranty:emissions:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"california":e="vehicle:warranty:california:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"extended":e="vehicle:warranty:extended:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"model-and-options-trim-selection":case"models-and-options-trim-details":e="vehicle:models:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate();break;case"model-and-options-detailed-compare":e="vehicle:models:"+this.modelYear()+":"+this.modelCategory()+":"+this.nameplate()+":"+this.compareTabName();break;case"search-results":e="search";break;case"fordcreditservices":e="fordcreditservices";break;case"owners":e="owners";break;case"contact-us":e="contact";break;case"glossary":e="glossary";break;case"privacy":e="privacy";break;case"california-privacy":e="caprivacy";break;case"innovation-overview":case"innovation-about":case"innovation-features":case"innovation-availability":case"innovation-owner":e="awareness:features:sync";break;default:e="defaultsiteLevel";}return e;};this.fullVideoType=function(){var f=_widgets.context.SelectedContext.get("currentView");var e;switch(f){case"innovation-overview":case"innovation-about":case"innovation-features":case"innovation-availability":case"innovation-owner":e="fv: tech: sync: video: full";break;default:e="fv: home: video: full: "+this.nameplate();}return e;};this.featureCategoryName=function(){var f=_widgets.context.SelectedContext.get("feature");if(f.categoy===""){return f.category;}else{var e=f.category;return(_widgets.context.AvailableContext.get("featuresCategoryTitles")[e]).toLowerCase().replace(/ /,"");}};this.getSearchCurrentResult=function(){return this.searchCurrentResult;};this.syncFeatureName=function(){var e=_widgets.context.SelectedContext.get("feature");if(e.id===""){return e.id;}else{var f=e.id;return(_widgets.context.AvailableContext.get("featuresCategoryTitles")[f]).toLowerCase();}};this.compareTabName=function(){if(!this.compareCategoryTabName){this.compareCategoryTabName="power and handling";}var e=this.compareCategoryTabName.toLowerCase().replace(/_/g," ");if(e.indexOf("category")!=-1){return e.substring("category".length);}else{return e;}};this.siteSection=function(){var f=_widgets.context.SelectedContext.get("currentView");var e;switch(f){case"brand-home":case"welcome-back":e="home";break;case"nameplate-overview":case"pricing-and-payments-nameplate":case"features":case"model-and-options-trim-selection":case"models-and-options-trim-details":case"payment-estimator":case"model-and-options-detailed-compare":e="vehicle";break;case"pricing-how-to":e="pricing-how-to";break;case"warranty":e="warranty";break;case"roadside":e="roadside";break;case"emissions":e="emissions";break;case"california":e="california";break;case"vehicle":e="vehicle";break;case"extended":e="extended";break;case"search-results":e="search";break;case"fordcreditservices":e="fordcreditservices";break;case"owners":e="owners";break;case"contact-us":e="contact";break;case"glossary":e="glossary";break;case"privacy":e="privacy";break;case"california-privacy":e="caprivacy";break;case"innovation-overview":case"innovation-about":case"innovation-features":case"innovation-availability":case"innovation-owner":e="awareness";break;default:e="defaultsiteSection";}return e;};this.modelCategory=function(){var e=__params.segment.toLowerCase();if(e=="trucks"||e=="suvs"||e=="cars"||e=="crossovers"){e=e.substring(0,e.length-1);}return e;};this.trimDetailCategory=function(){return this.trimDetailCategoryName.toLowerCase();};this.searchTotalResults=function(){return _widgets.context.SearchContext.get("totalRecords");};this.bestBetsResults=function(){return _widgets.context.SearchContext.get("bestBetsRecords");};this.itemDetailName=function(){return this.itemName.toLowerCase();};this.userLanguage=function(){return _widgets.context.UserContext.get("userLanguage");};this.searchCurrentPageNumber=function(){return _widgets.context.SearchContext.get("page")+1;};this.featureName=function(){var e=_widgets.context.SelectedContext.get("feature");if(e.id===""){return e.id;}else{var f=e.id;return(_widgets.context.AvailableContext.get("featuresCategoryTitles")[f]).toLowerCase();}};this.featureTitleTag=function(){var f=/[^a-zA-Z0-9_-]/g;var e=8;return this.featureTitle.replace(f,"").substring(0,e).toLowerCase();};this.getBrandType=function(){var f=_widgets.context.SelectedContext.get("currentView");var e;switch(f){case"innovation-overview":case"innovation-about":case"innovation-features":case"innovation-availability":case"innovation-owner":e="thsync";break;default:e="fvflup";}return e;};this.nameplate=function(){var e=_widgets.context.SelectedContext.get("nameplate");if(typeof(e)=="string"){return"ford "+e.toLowerCase();}else{return null;}};this.getCodeForModel=function(){return"";};this.clearVars=function(){s.hier1="";s.eVar12="";s.prop12="";s.eVar22="";s.prop22="";s.prop34="";s.eVar9="";s.prop9="";s.eVar14="";s.prop14="";s.channel="";s.eVar35="";s.prop21="";s.eVar6="";s.prop6="";s.eVar15="";s.prop15="";s.eVar4="";s.prop4="";s.prop5="";s.eVar11="";s.prop35="";s.eVar16="";s.prop16="";s.linkTrackVars="";s.events="";s.linkTrackEvents="";s.pageName="";};};var metricsTracker=new com.forddirect.brandsites.metrics.MetricsTracker();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/metrics/DART-min.js */
getPackageForName("com.forddirect.brandsites.metrics").DART=function(){this.trackEvent=function(f,c,g,i){var e=Math.random()+"";var b=e*10000000000000;if(typeof(c)=="undefined"||typeof(c)=="object"){c="";}else{c=c.replace(/[^a-zA-Z0-9_-]/g,"");}var d=this.getSpotlightURL(f,c,b,g,i);var h=document.getElementById("doubleclick");if(h){h.src=d;}else{this.generate_iframe("doubleclick",d,"1px","1px","none","0px");}};this.getSpotlightURL=function(e,d,b,f,h){var c="690327";var g=document.URL.toString();if(g.indexOf("espanol")!=-1||g.indexOf("convertlanguage")!=-1){c="1119742";}return document.location.protocol+"//fls.doubleclick.net/activityi;src="+c+";type="+h+";cat="+e+";u1="+d+";u6="+f+";ord="+b+"?";};this.generate_iframe=function(g,c,a,d,f,b){if(window.navigator.userAgent.search(/Firefox/)>0){var e=document.createElement("div");e.innerHTML='<IFRAME SRC="'+c+'" WIDTH='+d+" HEIGHT="+a+" FRAMEBORDER="+b+" id="+g+"</IFRAME>";document.body.appendChild(e);}else{document.write('<IFRAME SRC="'+c+'" WIDTH='+d+" HEIGHT="+a+" FRAMEBORDER="+b+" id="+g+"></IFRAME>");}return false;};};var dartTracker=new com.forddirect.brandsites.metrics.DART();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/metrics/s_code-min.js */
function s_wds(){}function s_ca(){}var s_account="fmcfvngdev";var s=s_gi(s_account,1);function s_rf(a){a._rf_f=new Function("t","l",'var s=this,i=t?t.indexOf("="):-1,n=(l.substring(0,1)=="!");l=n?l.substring(1):l;if(t){if(i>0){if((","+l+",").indexOf(","+t.substring(0,i)+",")>=0)t=n?"":t;else t=n?t:""}if(t)s._rf_b+=(s._rf_b?"&":"")+t}');a._rf=new Function("x",'var y,i,h,a,b,l="q,ie,start,search_key,word,kw,cd";y=x=""+x;i=y.indexOf("?");if(i>=0){a="&"+y.substring(i+1)+"&";y=y.substring(0,i);h=y.toLowerCase();i=0;if(h.substring(0,7)=="http://")i+=7;else if(h.substring(0,8)=="https://")i+=8;h=h.substring(i);i=h.indexOf("/");if(i>0){h=h.substring(0,i);if(h.indexOf("google")>=0&&(a.indexOf("&q=")>=0||a.indexOf("&ie=")>=0||a.indexOf("&start=")>=0||a.indexOf("&search_key=")>=0||a.indexOf("&word=")>=0||a.indexOf("&kw=")>=0||a.indexOf("&cd=")>=0)){s._rf_b="";s.pt(a,"&","_rf_f",l);s.pt(a,"&","_rf_f","!"+l);b=s._rf_b;if(b!=a)return y+"?"+b}}}return x');a._rf_fl=a.fl;a.fl=new Function("x","l","var s=this;if(x&&l==255)x=s._rf(x);return s._rf_fl(x,l)");a._rf_hav=a.hav;a.hav=new Function("var s=this,x=s.referrer;if(x)s.referrer=s.fl(x,255);return s._rf_hav()");}s_rf(s);s.dynamicAccountSelection=true;s.dynamicAccountList="fmcfvngprod,fmcglobal=www.fordvehicles.com,www.fordstory.com,www.forddriveone.com,www.showroom.fordvehicles.com,www2.showroom.fordvehicles.com,www.shoppingtools.fordvehicles.com,www.inventory.fordvehicles.com,www.quickquote.fordvehicles.com,www.showroom.fordvehicles.com,bp2.forddirect.fordvehicles.com,intellipriceauto.com;fmcglobal,fmclincolncom=lincoln.com,build.lincoln.com,lincolnvehicles.com;fmclincolncomdev=builddev.lincoln.com,buildqa.lincoln.com,qa.lincoln.jwtdigital.com,origin-buildqa.lincoln.com;fmcglobal,fmcmercuryvehicles=mercuryvehicles.com,build.mercuryvehicles.com,drivezen.com;fmcmercuryvehiclesdev=builddev.mercuryvehicles.com,buildqa.mercuryvehicles.com,qa.mercury.jwtdigital.com,origin-buildqa.mercuryvehicles.com";s.currencyCode="USD";s.trackDownloadLinks=true;s.trackExternalLinks=true;s.trackInlineStats=true;s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";s.linkInternalFilters="javascript:,secure.ford.com,meettheluckyones.com,mercuryvehiclesdirect.com,lincolnvehiclesdirect.com,lincoln.com,lincolnmercury.com,lincolnvehicles.com,mercuryvehicles.com,rediscovermercury.com,forddirect.com,destinosford.com.mx,ford.com.mx,fordcamiones.com,motorcraft.com.mx,fordracing.com.mx,dealerconnection.com,fordvehicles.com,ford.com,corporate-ir.net,fordmotorcompany.com,fordnews.com,fordglobal.com,fordworldwide.com,mazdausa.com,mercury.eprize.net,buildyourlincolnmercury.com,exploremilanworld.com,fordcpo.com,fordboldmoves.com,fordaccessoriesstore.com,eprize.net,intellipriceauto.com,edgeacrossamerica,thefoldflex,foreseeresults.com,webeffective.keynote.com,autoshows.ford.com,mercuryowner.com,flmowner.com,lincolnowner.com,fordowner.com,myford,fordaccessories.com,lincolnaccessories.com,mercuryaccessories.com,forddriveone.com,fordstory.com";s.linkLeaveQueryString=false;s.linkTrackVars="None";s.linkTrackEvents="None";s.usePlugins=true;function s_doPlugins(a){a.products=a.eVar37=a.eVar39=a.eVar8=a.prop8="";if(a.pageName){a.pageName=a.pageName.toLowerCase();}if(!a.campaign){a.campaign=a.getQueryParam("bannerid,csid,sReferrer,campid");a.campaign=a.getValOnce(a.campaign,"cmp_getval",0);}if(a.campaign){a.eVar9=a.campaign;}a.prop17=a.getAndPersistValue(a.campaign,"s_p17_pers",90);a.eVar30=a.getQueryParam("glbcmp,fmccmp");a.prop30=a.getAndPersistValue(a.eVar30,"s_p30_pers",90);a.prop19=a.pageName;if(a.campaign){a.prop19=a.campaign+": "+a.pageName;}else{if(a.eVar30){a.prop19=a.eVar30+": "+a.pageName;}}if(!a.eVar13){a.eVar13=a.getQueryParam("intcmp");}a.eVar31=a.getQueryParam("cks");a.prop13=a.getAndPersistValue(a.eVar13,"s_p13_pers",0);a.eVar22=a.getValOnce(a.eVar22,"ev22_getval",0);a.prop22=a.eVar22;a.eVar5=a.getQueryParam("gnav");if(a.getQueryParam("referrer")){a.referrer=a.getQueryParam("referrer");}if(!a.eVar33){a.eVar33=a.getQueryParam("emailid");}a.prop33=a.getAndPersistValue(a.eVar33,"s_cp_pers",90);a.prop35=a.pageName;if(a.prop32){a.prop35=a.prop32+": "+a.pageName;}if(!a.c_r("s_p_s_prop8")){a.prop48=a.prop49=a.eVar8=trafficsource();a.prop8=a.getAndPersistValue(a.eVar8,"s_p_s_prop8",0);a.eVar36=a.getValOnce(popDT(),"ev_36_getval",0);a.events=a.apl(a.events,"event17",",",2);}checklast();popval();}function padFrontZero(a){if(a<10){return"0"+a;}else{return a.toString();}}function popDT(){var a=new Date();return a.getFullYear()+padFrontZero(a.getMonth()+1)+padFrontZero(a.getDate())+" "+padFrontZero(a.getHours());}function trafficsource(){var a=new Array("fmc:ford.com|ford.com","fmc:fordvehicles.com|fordvehicles.com|fordvehicles-esp.com","fmc:lincoln.com|lincoln.com|lincolnmercury.com","fmc:mercuryvehicles.com|mercuryvehicles.com","fmc:flmowner.com|flmowner.com","fmc:motocraft.com|motocraft.com","fmc:fordracing.com|fordracing.com","fmc:volvocars.us|volvocars.us","fmc:fordaccessories.com|fordaccessoriesstore.com|fordaccessories.com","fmc:lincolnaccessories.com|lincolnaccessories.com","fmc:mercuryaccessories.com|mercuryaccessories.com","fmc:genuineservice.com|genuineservice.com|genuineflmservice.com|genuinefordservice.com|genuinemercuryservice.com|genuinelincolnservice.com|fordautoclub.com|genuineflmservice.com","fmc:syncmyride.com|syncmyride.com","fmc:fordaxz.com|fordaxz.com","fmc:fordurban.com|fordurban.com","fmc:lincolnlounge.com,lincolnlounge.com","fmc:quicklane.com|quicklane.com|quicklaneservice.com","fmc:dealerconnection.com|.dealerconnection.com","fmc:tier2.com|ford.net|fords.com|dealers.com|dealers.net|dealer.com|dealer.net|store.com|store.net|stores.com|stores.net|.ford-now.com","fmc:owneradvantage.com|owneradvantage.com","fmc:fordworksolutions.com|fordworksolutions.com|fordworkssolutions.com","fmc:fordcredit.com|fordcredit.com|acctaccess.com|onlinevehiclefinancing.com|billerweb.com","fmc:fordcpo.com|fordcpo.com","fmc:fordpartsonline.com|fordparts.com|fordpartsonline.com");var e=document.referrer;for(i=0;i<a.length;i++){var d=a[i].split("|");for(j=1;j<d.length;j++){if(e.indexOf(d[j])>-1){return d[0];}}}if(s.campaign&&s.campaign!=""){return"banner";}else{if(s.eVar33&&s.eVar33!=""){return"email";}else{if(e==""){return"typed-bookmarked";}}}var c=refSearch(e);var b=s.getQueryParam("searchid");if(c&&b&&b!=""){return"search-paid";}else{if(c){return"search-natural";}else{return"natural-referrer";}}}function refSearch(c){var d=new Array("google.|q","yahoo.com|p","msn.com|q","aol.com|query","ask.com|q","myway.com|searchfor","altavista.com|q","netscape.com|query","live.com|q","allthweb.com|q","lycos.com|query");for(i=0;i<d.length;i++){var b=d[i].split("|");var a=s.getQueryParam(b[1],"",c);if(c.indexOf(b[0]>-1)&&a&&a!=""){if(b[0]=="google."){var e=s.getQueryParam("cd","",c);if(e){s.eVar50=s.prop50=e;s.events=s.apl(s.events,"event50",",",1);s.events=s.apl(s.events,"event51",",",1);s.products=s.apl(s.products,";;;;event50="+e,",",1);}}return true;}}return false;}function checklast(){if(!s.c_r("lastcheck")){var a=s.c_r("visivalm");var c=s.c_r("visivale");if(a==""){a=0;}if(c==""){c=0;}s.events=s.apl(s.events,"event38",",",1);s.events=s.apl(s.events,"event40",",",1);s.products=s.apl(s.products,";;;;event38="+a,",",1);s.eVar38="+"+a;s.products=s.apl(s.products,";;;;event40="+c,",",1);s.eVar40="+"+c;s.c_w("visivalm","0",0);s.c_w("visivale","0",0);}var b=new Date();b.setMinutes(b.getMinutes()+30);s.c_w("lastcheck","1",b);}function containsEvent(b){if(s.events){var a=s.events.split(",");for(i=0;i<a.length;i++){if(a[i]==b){return true;}}}return false;}function popval(){s.eVar37=0;s.eVar39=0;if(containsEvent("event13")&&s.evar28!="sweeps entry"){switch(s.prop20){case"email only opt-in":s.eVar48="opt-in";s.eVar49="email only";appendVal(10.2);break;case"email opt-in full":s.eVar48="opt-in";s.eVar49="full";appendVal(10.2);break;case"email direct opt-in":s.eVar48="opt-in";s.eVar49="direct only";appendVal(10.2);break;}}if(containsEvent("event2")){s.eVar48="bp complete";appendVal(13.25);}if(containsEvent("event5")&&s.eVar28=="brochure: anonymous: pdf"){s.eVar48="brochure";s.svar49="pdf";appendVal(9.45);}else{if(containsEvent("event5")&&s.eVar28=="brochure: identified: usps"){s.eVar48="brochure";s.svar49="mail";appendVal(26.91);}else{if(containsEvent("event12")){s.eVar48="competitive compare";appendVal(3.72);}else{if(containsEvent("event1")){s.eVar48="find dealer";appendVal(1.17);}else{if(containsEvent("event3")){switch(s.eVar28){case"vrfq: bp: as-built":s.eVar48="vehicle quote";s.eVar49="bp: as-built";appendVal(38.23);break;case"vrfq: si: as-built":s.eVar48="vehicle quote";s.eVar49="si: as-built";appendVal(38.23);break;case"vrfq: si: vin":s.eVar48="vehicle quote";s.eVar49="si: vin";appendVal(38.23);break;case"vrfq: vls: vin":s.eVar48="vehicle quote";s.eVar49="vls: vin";appendVal(38.23);break;case"vrfq: vls: as-built":s.eVar48="vehicle quote";s.eVar49="vls: as-built";appendVal(38.23);break;}}else{if(containsEvent("event9")){s.eVar48="view incentives";appendVal(3.58);}else{if(containsEvent("event19")){switch(s.eVar28){case"si: b&p":case"si: bp":s.eVar48="search inventory";s.eVar49="bp";appendVal(7.58);break;case"si: vls":s.eVar48="search inventory";s.eVar49="vls";appendVal(7.58);break;}}else{if(containsEvent("event8")){s.eVar48="trade-in";appendVal(56.89);}else{if(s.prop48=="payment estimator"){appendVal(5.12);}else{if(s.prop5=="si: window sticker"||s.prop11=="fv: si: vls: window sticker"){s.eVar48="window sticker";s.eVar49="view";appendVal(7.43);}else{if(containsEvent("event18")){switch(s.eVar28){case"qrfq: gip":s.eVar48="quick quote";s.eVar49="gip";appendVal(44.69);break;case"qrfq: gip: incentives":s.eVar48="quick quote";s.eVar49="gip: incentives";appendVal(44.69);break;case"qrfq: bp: let us find it":s.eVar48="quick quote";s.eVar49="bp: find it";appendVal(44.69);break;case"qrfq: si: let us find it":s.eVar48="quick quote";s.eVar49="si: find it";appendVal(44.69);break;case"qrfq: fdaf banner":s.eVar48="quick quote";s.eVar49="fdaf banner";appendVal(44.69);break;case"qrfq: bp: fast track":s.eVar48="quick quote";s.eVar49="bp: fast";appendVal(44.69);break;}}}}}}}}}}}}if(s.eVar37&&s.eVar37!=0&&s.eVar37!=""){s.products=s.apl(s.products,";;;;event37="+s.eVar37,",",1);s.eVar37="+"+s.eVar37;}else{s.eVar37="";}if(s.eVar39&&s.eVar39!=0&&s.eVar39!=""){s.products=s.apl(s.products,";;;;event39="+s.eVar39,",",1);s.eVar39="+"+s.eVar39;}else{s.eVar39="";}if(s.eVar48){s.prop48=s.eVar48;}if(s.eVar49){s.prop49=s.eVar49;}}function appendVal(e){var c=Math.round((e*gmmv())*100)/100;s.eVar37+=c;s.eVar39+=e;s.events=s.apl(s.events,"event43",",",1);s.events=s.apl(s.events,"event37",",",1);s.events=s.apl(s.events,"event39",",",1);var d=parseFloat(s.c_r("visivalm"));var b=parseFloat(s.c_r("visivale"));if(isNaN(d)){d=b=0;}d+=c;b+=e;d=Math.round((d)*100)/100;b=Math.round((b)*100)/100;var a=new Date();a.setFullYear(a.getFullYear()+1);s.c_w("visivalm",d,a);s.c_w("visivale",b,a);}function gmmv(){var a=new Array("ford edge","ford focus","ford fusion","ford mustang","ford escape","ford expedition","ford explorer","ford flex","ford sport trac","ford e-series","ford f-150","ford ranger","ford super duty","ford f-250","ford f-350","ford f-450","ford taurus","ford taurus x","ford escape hybrid");var b=new Array(1.18,0.51,0.56,0.76,0.85,1.76,1.13,1.59,1.06,1.32,1.32,0.74,1.62,1.62,1.62,1.62,0.84,1.21,0.85);if(containsEvent("event1")){return 1;}for(i=0;i<a.length;i++){if(s.prop16==a[i]){return b[i];}}return 1;}s.doPlugins=s_doPlugins;s.apl=new Function("l","v","d","u","var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i<a.length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCase()));}}if(!m)l=l?l+d+v:v;return l");s.split=new Function("l","d","var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x++]=l.substring(0,i);l=l.substring(i+d.length);}return a");s.getQueryParam=new Function("p","d","u","var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.location);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p.length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i==p.length?i:i+1)}return v");s.p_gpv=new Function("k","u","var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v=s.pt(q,'&','p_gvf',k)}return v");s.p_gvf=new Function("t","k","if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'True':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s.epa(v)}return ''");s.getValOnce=new Function("v","c","e","var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s.getAndPersistValue=new Function("v","c","e","var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if(v)s.c_w(c,v,e?a:0);return s.c_r(c);");s.visitorNamespace="ford";s.trackingServer="metrics.ford.com";s.trackingServerSecure="smetrics.ford.com";s.dc="112";s.vmk="4A43B06B";s.loadModule("Media");s.Media.autoTrack=false;s.Media.trackVars="None";s.Media.trackEvents="None";if(typeof s_pagename!=undefined&&s_pageName){s.t();}s.m_Media_c="(`OWhilePlaying~='s_media_'+m._in+'_~unc^D(~;`E~m.ae(mn,l,\"'+p+'\",~){var m=this~o;w.percent=((w.off^e+1)/w`X)*100;w.percent=w.percent>1~o.'+f~=new ~o.Get~:Math.floor(w.percent);w.timePlayed=i.t~}`x p');p=tcf(o)~Time~x,x!=2?p:-1,o)}~if(~m.monitor)m.monitor(m.s,w)}~m.s.d.getElementsByTagName~ersionInfo~'^N_c_il['+m._in+'],~'o','var e,p=~else~i.to~=Math.floor(~}catch(e){p=~m.track~s.wd.addEventListener~.name~m.s.rep(~layState~||^8~Object~m.s.wd[f1]~^A+=i.t+d+i.s+d+~.length~parseInt(~Player '+~s.wd.attachEvent~'a','b',c~Media~pe='m~;o[f1]~m.s.isie~.current~);i.~p<p2||p-p2>5)~.event=~m.close~i.lo~vo.linkTrack~=v+',n,~.open~){w.off^e=~;n=m.cn(n);~){this.e(n,~v=e='None';~Quick~MovieName()~);o[f~out(\"'+v+';~return~1000~i.lx~m.ol~o.controls~m.s.ape(i.~load',m.as~)}};m.~script';x.~,t;try{t=~Version()~n==~'--**--',~pev3~o.id~i.ts~tion~){mn=~1;o[f7]=~();~(x==~){p='~&&m.l~l[n])~:'')+i.e~':'E')+o~var m=s~!p){tcf~xc=m.s.~Title()~()/~7+'~+1)/i.l~;i.e=''~3,p,o);~m.l[n]=~Date~5000~;if~i.lt~';c2='~tm.get~Events~set~Change~)};m~',f~(x!=~4+'=n;~~^N.m_i('`c');m.cn=f`2n`5;`x `Rm.s.rep(`Rn,\"\\n\",''),\"\\r\",''),^9''^g`o=f`2n,l,p,b`5,i`8`U,tm`8^X,a='',x`ql=`Yl)`3!l)l=1`3n&&p){`E!m.l)m.l`8`U`3m.^K`k(n)`3b&&b.id)a=b.id;for (x in m.l)`Em.l[x]^J[x].a==a)`k(m.l[x].n`hn=n;i.l=l;i.p=m.cn(p`ha=a;i.t=0;^C=0;i.s`M^c`C^R`y`hlx=0;^a=i.s;`l=0^U;`L=-1;^Wi}};`k=f`2n`r0,-1^g.play=f`2n,o`5,i;i=m.e(n,1,o`hm`8F`2`Ii`3m.l){i=m.l[\"'+`Ri.n,'\"','\\\\\"')+'\"]`3i){`E`z==1)m.e(i.n,3,-1`hmt=^e`Cout(i.m,^Y)}}'`hm(^g.stop=f`2n,o`r2,o)};`O=f`2n`5^Z `0) {m.e(n,4,-1^4e=f`2n,x,o`5,i,tm`8^X,ts`M^c`C^R`y),ti=`OSeconds,tp=`OMilestones,z`8Array,j,d=^9t=1,b,v=`OVars,e=`O^d,`dedia',^A,w`8`U,vo`8`U`qi=n^J&&m.l[n]?m.l[n]:0`3i){w`Q=n;w`X=i.l;w.playerName=i.p`3`L<0)w`j\"OPEN\";`K w`j^H1?\"PLAY\":^H2?\"STOP\":^H3?\"MONITOR\":\"CLOSE\")));w`o`C`8^X^Gw`o`C.^e`C(i.s*`y)`3x>2||^i`z&&^i2||`z==1))) {b=\"`c.\"+name;^A = ^2n)+d+i.l+d+^2p)+d`3x){`Eo<0&&^a>0){o=(ts-^a)+`l;o=o<i.l?o:i.l-1}o`Mo)`3x>=2&&`l<o){i.t+=o-`l;^C+=o-`l;}`Ex<=2){i.e+=^H1?'S^M;`z=x;}`K `E`z!=1)m.e(n,1,o`hlt=ts;`l=o;`W`0&&`L>=0?'L'+`L^L+^i2?`0?'L^M:'')^Z`0){b=0;`d_o'`3x!=4`p`600?100`A`3`F`E`L<0)`d_s';`K `Ex==4)`d_i';`K{t=0;`sti=ti?`Yti):0;z=tp?m.s.sp(tp,','):0`3ti&&^C>=ti)t=1;`K `Ez){`Eo<`L)`L=o;`K{for(j=0;j<z`X;j++){ti=z[j]?`Yz[j]):0`3ti&&((`L^T<ti/100)&&((o^T>=ti/100)){t=1;j=z`X}}}}}}}`K{m.e(n,2,-1)^Z`0`pi.l`600?100`A`3`F^W0`3i.e){`W`0&&`L>=0?'L'+`L^L^Z`0){`s`d_o'}`K{t=0;m.s.fbr(b)}}`K t=0;b=0}`Et){`mVars=v;`m^d=e;vo.pe=pe;vo.^A=^A;m.s.t(vo,b)^Z`0){^C=0;`L=o^U}}}}`x i};m.ae=f`2n,l,p,x,o,b){`En&&p`5`3!m.l||!m.^Km`o(n,l,p,b);m.e(n,x,o^4a=f`2o,t`5,i=^B?^B:o`Q,n=o`Q,p=0,v,c,c1,c2,^Ph,x,e,f1,f2`1oc^h3`1t^h4`1s^h5`1l^h6`1m^h7`1c',tcf,w`3!i){`E!m.c)m.c=0;i`1'+m.c;m.c++}`E!^B)^B=i`3!o`Q)o`Q=n=i`3!^0)^0`8`U`3^0[i])`x;^0[i]=o`3!xc)^Pb;tcf`8F`2`J0;try{`Eo.v`H&&o`g`c&&^1)p=1`N0`B`3^O`8F`2`J0^6`9`t`C^7`3t)p=2`N0`B`3^O`8F`2`J0^6`9V`H()`3t)p=3`N0`B}}v=\"^N_c_il[\"+m._in+\"],o=^0['\"+i+\"']\"`3p==1^IWindows `c `Zo.v`H;c1`np,l,x=-1,cm,c,mn`3o){cm=o`g`c;c=^1`3cm&&c^Ecm`Q?cm`Q:c.URL;l=cm.dura^D;p=c`gPosi^D;n=o.p`S`3n){`E^88)x=0`3^83)x=1`3^81`T2`T4`T5`T6)x=2;}^b`Ex>=0)`4`D}';c=c1+c2`3`f&&xc){x=m.s.d.createElement('script');x.language='j^5type='text/java^5htmlFor=i;x`j'P`S^f(NewState)';x.defer=true;x.text=c;xc.appendChild(x`v6]`8F`2c1+'`E^83){x=3;'+c2+'}^e`Cout(`76+',^Y)'`v6]()}}`Ep==2^I`t`C `Z(`9Is`t`CRegistered()?'Pro ':'')+`9`t`C^7;f1=f2;c`nx,t,l,p,p2,mn`3o^E`9`u?`9`u:`9URL^Gn=`9Rate^Gt=`9`CScale^Gl=`9Dura^D^Rt;p=`9`C^Rt;p2=`75+'`3n!=`74+'||`i{x=2`3n!=0)x=1;`K `Ep>=l)x=0`3`i`42,p2,o);`4`D`En>0&&`7^S>=10){`4^V`7^S=0}`7^S++;`7^j`75+'=p;^e`C`w`72+'(0,0)\",500)}'`e`8F`2`b`v4]=-^F0`e(0,0)}`Ep==3^IReal`Z`9V`H^Gf1=n+'_OnP`S^f';c1`nx=-1,l,p,mn`3o^E`9^Q?`9^Q:`9Source^Gn=`9P`S^Gl=`9Length^R`y;p=`9Posi^D^R`y`3n!=`74+'){`E^83)x=1`3^80`T2`T4`T5)x=2`3^80&&(p>=l||p==0))x=0`3x>=0)`4`D`E^83&&(`7^S>=10||!`73+')){`4^V`7^S=0}`7^S++;`7^j^b`E`72+')`72+'(o,n)}'`3`V)o[f2]=`V;`V`8F`2`b1+c2)`e`8F`2`b1+'^e`C`w`71+'(0,0)\",`73+'?500:^Y);'+c2`v4]=-1`3`f)o[f3]=^F0`e(0,0^4as`8F`2'e',`Il,n`3m.autoTrack&&`G){l=`G(`f?\"OBJECT\":\"EMBED\")`3l)for(n=0;n<l`X;n++)m.a(^K;}')`3`a)`a('on^3);`K `E`P)`P('^3,false)";s.m_i("Media");var s_code="",s_objectID;function s_gi(h,k,z){var p="=fun`o(~.substring(~){`Ps=^O~.indexOf(~#2 ~;$2~`b$2~=new Fun`o(~.length~.toLowerCase()~`Ps#8c_#k^an+'],~=new Object~};s.~`YMigrationServer~.toUpperCase~){$2~','~s.wd~);s.~')q='~=new Array~ookieDomainPeriods~.location~^LingServer~dynamicAccount~var ~link~s.m_~=='~s.apv~BufferedRequests~Element~)$2x^b!Object#WObject.prototype#WObject.prototype[x])~etTime~visitor~$w@c(~referrer~else ~s.pt(~s.maxDelay~}c#E(e){~#i+~=''~.lastIndexOf(~^wc_i~}$2~.protocol~=new Date~^wobjectID=s.ppu=$I=$Iv1=$Iv2=$Iv3~for(i=~ction~javaEnabled~onclick~Name~ternalFilters~javascript~s.dl~@6s.b.addBehavior(\"# default# ~=parseFloat(~typeof(v)==\"~window~cookie~while(~s.vl_g~Type~;i#U{~tfs~s.un~&&s.~o^woid~browser~.parent~document~colorDepth~String~.host~s.fl(~s.rep(~s.eo~'+tm@S~s.sq~parseInt(~t=s.ot(o)~track~nload~j='1.~this~#PURL~}else{~s.vl_l~lugins~'){q='~dynamicVariablePrefix~');~;for(~Sampling~s.rc[un]~Event~._i~&&(~loadModule~resolution~s.c_r(~s.c_w(~s.eh~s.isie~\"m_\"+n~Secure~Height~tcf~isopera~ismac~escape(~'s_~.href~screen.~s#8gi(~Version~harCode~variableProvider~.s_~)s_sv(v,n[k],i)}~')>=~){s.~)?'Y':'N'~u=m[t+1](~i)clearTimeout(~e&&l$bSESSION'~name~home#P~;try{~,$m)~s.ssl~s.oun~s.rl[u~Width~o.type~s.vl_t~=s.sp(~Lifetime~s.gg('objectID~sEnabled~'+n+'~.mrq(@wun+'\"~ExternalLinks~charSet~lnk~onerror~http~currencyCode~.src~disable~.get~MigrationKey~(''+~&&!~f',~){t=~r=s[f](~u=m[t](~Opera~Math.~s.ape~s.fsg~s.ns6~conne~InlineStats~&&l$bNONE'~Track~'0123456789~true~+\"_c\"]~s.epa(~t.m_nl~s.va_t~m._d~n=s.oid(o)~,'sqs',q);~LeaveQuery~?'&~'=')~n){~\"'+~){n=~'_'+~'+n;~\",''),~,255)}~if(~vo)~s.sampled~=s.oh(o);~+(y<1900?~n]=~1);~&&o~:'';h=h?h~;'+(n?'o.~sess~campaign~lif~ in ~s.co(~ffset~s.pe~m._l~s.c_d~s.brl~s.nrs~s[mn]~,'vo~s.pl~=(apn~space~\"s_gs(\")~vo._t~b.attach~2o7.net'~Listener~Year(~d.create~=s.n.app~)}}}~!='~'||t~)+'/~s()+'~){p=~():''~a['!'+t]~&&c){~://')i+=~){v=s.n.~channel~100~rs,~.target~o.value~s_si(t)~')dc='1~\".tl(\")~etscape~s_')t=t~omePage~='+~&&t~[b](e);~\"){n[k]~';s.va_~a+1,b):~return~mobile~height~events~random~code~=s_~=un~,pev~'MSIE ~'fun~floor(~atch~transa~s.num(~m._e~s.c_gd~,'lt~tm.g~.inner~;s.gl(~,f1,f2~',s.bc~page~Group,~.fromC~sByTag~')<~++)~)){~||!~+';'~i);~y+=~l&&~''+x~[t]=~[i]=~[n];~' '+~'+v]~>=5)~:'')~+1))~il['+s~!a[t])~~s._c=^pc';`H=`y`5!`H`i@v`H`il`K;`H`in=0;}s^al=`H`il;s^an=`H`in;s^al[s^a$7s;`H`in++;s.an#8an;s.cls`0x,c){`Pi,y`g`5!c)c=^O.an;`n0;i<x`8^3n=x`1i,i+1)`5c`3n)>=0)#Zn}`4y`Cfl`0x,l){`4x?@Ux)`10,l):x`Cco`0o`F!o)`4o;`Pn`B,x^Wx$Fo)$2x`3'select#T0&&x`3'filter#T0)n[x]=o[x];`4n`Cnum`0x){x`g+x^W`Pp=0;p<x`8;p#U$2(@j')`3x`1p,p#j<0)`40;`41`Crep#8rep;s.sp#8sp;s.jn#8jn;@c`0x`2,h=@jABCDEF',i,c=s.@L,n,l,e,y`g;c=c?c`E$g`5x){x`g+x`5c`SAUTO'^b'').c^uAt){`n0;i<x`8^3c=x`1i,i+$8n=x.c^uAt(i)`5n>127){l=0;e`g;^0n||l<4){e=h`1n%16,n%16+1)+e;n=(n-n%16)/16;l++}#Z'%u'+e}`6c`S+')#Z'%2B';`b#Z^oc)}x=y^Qx=x?^F^o#b),'+`G%2B'):x`5x&&c^6em==1&&x`3'%u#T0&&x`3'%U#T0){i=x`3'%^V^0i>=0){i++`5h`18)`3x`1i,i+1)`E())>=0)`4x`10,i)+'u00'+x`1#Yi=x`3'%',i$a}`4x`Cepa`0x`2;`4x?un^o^F#b,'+`G ')):x`Cpt`0x,d,f,a`2,t=x,z=0,y,r;^0t){y=t`3d);y=y<0?t`8:y;t=t`10,y);@Yt,a)`5r)`4r;z+=y+d`8;t=x`1z,x`8);t=z<x`8?t:''}`4''`Cisf`0t,a){`Pc=a`3':')`5c>=0)a=a`10,c)`5t`10,2)`S$u`12);`4(t!`g$x==a)`Cfsf`0t,a`2`5`ca,`G,'is@Wt))@d+=(@d!`g?`G`ft;`40`Cfs`0x,f`2;@d`g;`cx,`G,'fs@Wf);`4@d`Csi`0wd`2,c`g+s_gi,a=c`3\"{\"),b=c`h\"}\"),m;c#8fe(a>0&&b>0?c`1#10)`5wd&&wd.^A$iwd.s`Xout(#C`o s_sv(o,n,k){`Pv=o[k],i`5v`F`xstring\"||`xnumber\")n[k]=v;`bif (`xarray$z`K;`n0;i<v`8;i++^x`bif (`xobject$z`B^Wi$Fv^x}}fun`o $q{`Pwd=`y,s,i,j,c,a,b;wd^wgi`7\"un\",\"pg\",\"ss\",@wc+'\");wd.^s@w@9+'\");s=wd.s;s.sa(@w^5+'\"`I^4=wd;`c^1,\",\",\"vo1\",t`I@M=^G=s.`Q`r=s.`Q^2=`H`m=\\'\\'`5t.m_#a@n)`n0;i<@n`8^3n=@n[i]`5@vm=t#ec=t[^i]`5m$ic=\"\"+c`5c`3\"fun`o\")>=0){a=c`3\"{\");b=c`h\"}\");c=a>0&&b>0?c`1#10;s[^i@l=c`5#H)s.^c(n)`5s[n])for(j=0;j<$J`8;j#Us_sv(m,s[n],$J[j]$a}}`Pe,o,t@6o=`y.opener`5o$9^wgi@Xo^wgi(@w^5+'\")`5t)$q}`e}',1)}`Cc_d`g;#If`0t,a`2`5!#Gt))`41;`40`Cc_gd`0`2,d=`H`M^D@4,n=s.fpC`L,p`5!n)n=s.c`L`5d@V$K@xn?^Jn):2;n=n>2?n:2;p=d`h'.')`5p>=0){^0p>=0&&n>1$fd`h'.',p-$8n--}$K=p>0&&`cd,'.`Gc_gd@W0)?d`1p):d}}`4$K`Cc_r`0k`2;k=@c(k);`Pc=#fs.d.`z,i=c`3#fk+@u,e=i<0?i:c`3';',i),v=i<0?'':@mc`1i+2+k`8,e<0?c`8:e));`4v$b[[B]]'?v:''`Cc_w`0k,v,e`2,d=#I(),l=s.`z@F,t;v`g+v;l=l?@Ul)`E$g`5@3@h@X(v!`g?^Jl?l:0):-60)`5t){e`l;e.s`X(e.g`X()+(t*$m0))}`jk@h^zd.`z=k+'`Zv!`g?v:'[[B]]')+'; path=/;'+(@3?' expires$we.toGMT^C()#X`f(d?' domain$wd#X:'^V`4^ek)==v}`40`Ceh`0o,e,r,f`2,b=^p'+e+@ys^an,n=-1,l,i,x`5!^gl)^gl`K;l=^gl;`n0;i<l`8&&n<0;i++`Fl[i].o==o&&l[i].e==e)n=i`jn<0@xi;l[n]`B}x=l#ex.o=o;x.e=e;f=r?x.b:f`5r||f){x.b=r?0:o[e];x.o[e]=f`jx.b){x.o[b]=x.b;`4b}`40`Ccet`0f,a,t,o,b`2,r,^l`5`T>=5^b!s.^m||`T>=7#V^l`7's`Gf`Ga`Gt`G`Pe,r@6@Ya)`er=s[t](e)}`4r^Vr=^l(s,f,a,t)^Q$2s.^n^6u`3#B4^y0)r=s[b](a);else{^g(`H,'@N',0,o);@Ya`Ieh(`H,'@N',1)}}`4r`Cg^4et`0e`2;`4s.^4`Cg^4oe`7'e`G`Ac;^g(`y,\"@N\",1`Ie^4=1;c=s.t()`5c)s.d.write(c`Ie^4=0;`4@k'`Ig^4fb`0a){`4`y`Cg^4f`0w`2,p=w^9,l=w`M;s.^4=w`5p&&p`M!=#ap`M^D==l^D^z^4=p;`4s.g^4f(s.^4)}`4s.^4`Cg^4`0`2`5!s.^4^z^4=`H`5!s.e^4)s.^4=s.cet('g^4@Ws.^4,'g^4et',s.g^4oe,'g^4fb')}`4s.^4`Cmrq`0u`2,l=@A],n,r;@A]=0`5l)for(n=0;n<l`8;n#U{r=l#es.mr(0,0,r.r,0,r.t,r.u)}`Cbr`0id,rs`2`5s.@R`U#W^f^pbr',rs))$L=rs`Cflush`U`0){^O.fbr(0)`Cfbr`0id`2,br=^e^pbr')`5!br)br=$L`5br`F!s.@R`U)^f^pbr`G'`Imr(0,0,br)}$L=0`Cmr`0$C,q,$nid,ta,u`2,dc=s.dc,t1=s.`N,t2=s.`N^j,tb=s.`NBase,p='.sc',ns=s.`Y`r$R,un=s.cls(u?u:(ns?ns:s.fun)),r`B,l,imn=^pi_'+(un),im,b,e`5!rs`Ft1`Ft2^6ssl)t1=t2^Q$2!tb)tb='$V`5dc)dc=@Udc)`9;`bdc='d1'`5tb`S$V`Fdc`Sd1$r12';`6dc`Sd2$r22';p`g}t1#9+'.'+dc+'.'+p+tb}rs='@O'+(@8?'s'`f'://'+t1+'/b/ss/'+^5+'/'+(s.#3?'5.1':'1'$dH.20.3/'+$C+'?AQB=1&ndh=1'+(q?q`f'&AQE=1'`5^h@Vs.^n`F`T>5.5)rs=^E$n4095);`brs=^E$n2047)`jid^zbr(id,rs);#2}`js.d.images&&`T>=3^b!s.^m||`T>=7)^b@e<0||`T>=6.1)`F!s.rc)s.rc`B`5!^Y){^Y=1`5!s.rl)s.rl`B;@An]`K;s`Xout('$2`y`il)`y`il['+s^an+']@J)',750)^Ql=@An]`5l){r.t=ta;r.u#9;r.r=rs;l[l`8]=r;`4''}imn+=@y^Y;^Y++}im=`H[imn]`5!im)im=`H[im$7new Image;im^wl=0;im.o^M`7'e`G^O^wl=1;`Pwd=`y,s`5wd`il){s=wd`il['+s^an+'];s@J`Inrs--`5!$M)`Rm(\"rr\")}')`5!$M^znrs=1;`Rm('rs')}`b$M++;im@Q=rs`5rs`3'&pe=^y0^b!ta||ta`S_self$ca`S_top'||(`H.@4$xa==`H.@4)#Vb=e`l;^0!im^w#ae.g`X()-b.g`X()<500)e`l}`4''}`4'<im'+'g sr'+'c=@wrs+'\" width=1 #4=1 border=0 alt=\"\">'`Cgg`0v`2`5!`H[^p#g)`H[^p#g`g;`4`H[^p#g`Cglf`0t,a`Ft`10,2)`S$u`12);`Ps=^O,v=s.gg(t)`5v)s#cv`Cgl`0v`2`5s.pg)`cv,`G,'gl@W0)`Crf`0x`2,y,i,j,h,l,a,b`g,c`g,t`5x){y`g+x;i=y`3'?')`5i>0){a=y`1i+$8y=y`10,#Yh=y`9;i=0`5h`10,7)`S@O$j7;`6h`10,8)`S@Os$j8;h=h`1#Yi=h`3\"/\")`5i>0){h=h`10,i)`5h`3'google^y0){a@Ea,'&')`5a`8>1){l=',q,ie,start,search_key,word,kw,cd,'^Wj=0;j<a`8;j++@Xa[j];i=t`3@u`5i>0&&l`3`G+t`10,i)+`G)>=0)b+=(b@t'`ft;`bc+=(c@t'`ft`jb$i#Z'?'+b+'&'+c`5#b!=y)x=y}}}}}}`4x`Chav`0`2,qs`g,fv=s.`Q@iVa$nfe=s.`Q@i^Zs,mn,i`5$I){mn=$I`10,1)`E()+$I`11)`5$N){fv=$N.^LVars;fe=$N.^L^Zs}}fv=fv?fv+`G+^R+`G+^R2:'';`n0;i<@o`8^3`Pk=@o[i],v=s[k],b=k`10,4),x=k`14),n=^Jx),q=k`5v&&k$b`Q`r'&&k$b`Q^2'`F$I||s.@M||^G`Ffv^b`G+fv+`G)`3`G+k+`G)<0)v`g`5k`S#5'&&fe)v=s.fs(v,fe)`jv`Fk`S^U`JD';`6k`S`YID`Jvid';`6k`S^P^Tg';v=^Ev$1`6k`S`a^Tr';v=^Es.rf(v)$1`6k`Svmk'||k`S`Y@T`Jvmt';`6k`S`D^Tvmf'`5@8^6`D^j)v`g}`6k`S`D^j^Tvmf'`5!@8^6`D)v`g}`6k`S@L^Tce'`5v`E()`SAUTO')v='ISO8859-1';`6s.em==2)v='UTF-8'}`6k`S`Y`r$R`Jns';`6k`Sc`L`Jcdp';`6k`S`z@F`Jcl';`6k`S^v`Jvvp';`6k`S@P`Jcc';`6k`S$l`Jch';`6k`S#F`oID`Jxact';`6k`S$D`Jv0';`6k`S^d`Js';`6k`S^B`Jc';`6k`S`t^t`Jj';`6k`S`p`Jv';`6k`S`z@H`Jk';`6k`S^8@B`Jbw';`6k`S^8^k`Jbh';`6k`S@f`o^2`Jct';`6k`S@5`Jhp';`6k`Sp^S`Jp';`6#Gx)`Fb`Sprop`Jc@z`6b`SeVar`Jv@z`6b`Slist`Jl@z`6b`Shier^Th@zv=^Ev$1`jv)qs+='&'+q+'$w(k`10,3)$bpev'?@c(v):v$a`4qs`Cltdf`0t,h@Xt?t`9$A`9:'';`Pqi=h`3'?^Vh=qi>=0?h`10,qi):h`5t&&h`1h`8-(t`8#j`S.'+t)`41;`40`Cltef`0t,h@Xt?t`9$A`9:''`5t&&h`3t)>=0)`41;`40`Clt`0h`2,lft=s.`QDow^MFile^2s,lef=s.`QEx`s,$E=s.`QIn`s;$E=$E?$E:`H`M^D@4;h=h`9`5s.^LDow^MLinks&&lft&&`clft,`G#Jd@Wh))`4'd'`5s.^L@K&&h`10,1)$b# '^blef||$E)^b!lef||`clef,`G#Je@Wh))^b!$E#W`c$E,`G#Je@Wh)))`4'e';`4''`Clc`7'e`G`Ab=^g(^O,\"`q\"`I@M=$G^O`It(`I@M=0`5b)`4^O$y`4@k'`Ibc`7'e`G`Af,^l`5s.d^6d.all^6d.all.cppXYctnr)#2;^G=e@Q`V?e@Q`V:e$o;^l`7\"s\",\"`Pe@6$2^G^b^G.tag`r||^G^9`V||^G^9Node))s.t()`e}\");^l(s`Ieo=0'`Ioh`0o`2,l=`H`M,h=o^q?o^q:'',i,j,k,p;i=h`3':^Vj=h`3'?^Vk=h`3'/')`5h^bi<0||(j>=0&&i>j)||(k>=0&&i>k))$fo`k$9`k`8>1?o`k:(l`k?l`k:'^Vi=l.path@4`h'/^Vh=(p?p+'//'`f(o^D?o^D:(l^D?l^D#i)+(h`10,1)$b/'?l.path@4`10,i<0?0:i$d'`fh}`4h`Cot`0o){`Pt=o.tag`r;t=t$x`E?t`E$g`5t`SSHAPE')t`g`5t`Ft`SINPUT'&&@C&&@C`E)t=@C`E();`6!t$9^q)t='A';}`4t`Coid`0o`2,^K,p,c,n`g,x=0`5t@V^7$fo`k;c=o.`q`5o^q^bt`SA$c`SAREA')^b!c#Wp||p`9`3'`t#T0))n$5`6c@x^Fs.rep(^Fs.rep@Uc,\"\\r$0\"\\n$0\"\\t$0' `G^Vx=2}`6$p^bt`SINPUT$c`SSUBMIT')@x$p;x=3}`6o@Q$x`SIMAGE')n=o@Q`5@v^7=^En@7;^7t=x}}`4^7`Crqf`0t,un`2,e=t`3@u,u=e>=0?`G+t`10,e)+`G:'';`4u&&u`3`G+un+`G)>=0?@mt`1e#j:''`Crq`0un`2,c#9`3`G),v=^e^psq'),q`g`5c<0)`4`cv,'&`Grq@Wun);`4`cun,`G,'rq',0)`Csqp`0t,a`2,e=t`3@u,q=e<0?'':@mt`1e+1)`Isqq[q]`g`5e>=0)`ct`10,e),`G@r`40`Csqs`0un,q`2;^Iu[u$7q;`40`Csq`0q`2,k=^psq',v=^ek),x,c=0;^Iq`B;^Iu`B;^Iq[q]`g;`cv,'&`Gsqp',0`Ipt(^5,`G@rv`g^Wx$F^Iu`W)^Iq[^Iu[x]]+=(^Iq[^Iu[x]]?`G`fx^Wx$F^Iq`W^6sqq[x]^bx==q||c<2#Vv+=(v@t'`f^Iq[x]+'`Zx);c++}`4^fk,v,0)`Cwdl`7'e`G`Ar=@k,b=^g(`H,\"o^M\"),i,o,oc`5b)r=^O$y`n0;i<s.d.`Qs`8^3o=s.d.`Qs[i];oc=o.`q?\"\"+o.`q:\"\"`5(oc`3$S<0||oc`3\"^woc(\")>=0)$9c`3$s<0)^g(o,\"`q\",0,s.lc);}`4r^V`Hs`0`2`5`T>3^b!^h#Ws.^n||`T#h`Fs.b^6$U^Z)s.$U^Z('`q#O);`6s.b^6b.add^Z$W)s.b.add^Z$W('click#O,false);`b^g(`H,'o^M',0,`Hl)}`Cvs`0x`2,v=s.`Y^X,g=s.`Y^X#Qk=^pvsn_'+^5+(g?@yg#i,n=^ek),e`l,y=e@S$X);e.set$Xy+10$61900:0))`5v){v*=$m`5!n`F!^fk,x,e))`40;n=x`jn%$m00>v)`40}`41`Cdyasmf`0t,m`Ft&&m&&m`3t)>=0)`41;`40`Cdyasf`0t,m`2,i=t?t`3@u:-1,n,x`5i>=0&&m){`Pn=t`10,i),x=t`1i+1)`5`cx,`G,'dyasm@Wm))`4n}`40`Cuns`0`2,x=s.`OSele`o,l=s.`OList,m=s.`OM#E,n,i;^5=^5`9`5x&&l`F!m)m=`H`M^D`5!m.toLowerCase)m`g+m;l=l`9;m=m`9;n=`cl,';`Gdyas@Wm)`5n)^5=n}i=^5`3`G`Ifun=i<0?^5:^5`10,i)`Csa`0un`2;^5#9`5!@9)@9#9;`6(`G+@9+`G)`3`G+un+`G)<0)@9+=`G+un;^5s()`Cm_i`0n,a`2,m,f=n`10,1),r,l,i`5!`Rl)`Rl`B`5!`Rnl)`Rnl`K;m=`Rl[n]`5!a&&m&&#H@Vm^a)`Ra(n)`5!m){m`B,m._c=^pm';m^an=`H`in;m^al=s^al;m^al[m^a$7m;`H`in++;m.s=s;m._n=n;$J`K('_c`G_in`G_il`G_i`G_e`G_d`G_dl`Gs`Gn`G_r`G_g`G_g1`G_t`G_t1`G_x`G_x1`G_rs`G_rr`G_l'`Im_l[$7m;`Rnl[`Rnl`8]=n}`6m._r@Vm._m){r=m._r;r._m=m;l=$J;`n0;i<l`8;i#U$2m[l[i]])r[l[i]]=m[l[i]];r^al[r^a$7r;m=`Rl[$7r`jf==f`E())s[$7m;`4m`Cm_a`7'n`Gg`Ge`G$2!g)g=^i;`Ac=s[g@l,m,x,f=0`5!c)c=`H[\"s_\"+g@l`5c&&s_d)s[g]`7\"s\",s_ft(s_d(c)));x=s[g]`5!x)x=`H[\\'s_\\'+g]`5!x)x=`H[g];m=`Ri(n,1)`5x^b!m^a||g!=^i#Vm^a=f=1`5(\"\"+x)`3\"fun`o\")>=0)x(s);`b`Rm(\"x\",n,x,e)}m=`Ri(n,1)`5@pl)@pl=@p=0;`ut();`4f'`Im_m`0t,n,d,e@X@yt;`Ps=^O,i,x,m,f=@yt,r=0,u`5`R#a`Rnl)`n0;i<`Rnl`8^3x=`Rnl[i]`5!n||x==@vm=`Ri(x);u=m[t]`5u`F@Uu)`3#C`o^y0`Fd&&e)@Zd,e);`6d)@Zd);`b@Z)}`ju)r=1;u=m[t+1]`5u@Vm[f]`F@Uu)`3#C`o^y0`Fd&&e)@1d,e);`6d)@1d);`b@1)}}m[f]=1`5u)r=1}}`4r`Cm_ll`0`2,g=`Rdl,i,o`5g)`n0;i<g`8^3o=g[i]`5o)s.^c(o.n,o.u,o.d,o.l,o.e,$8g#d0}`C^c`0n,u,d,l,e,ln`2,m=0,i,g,o=0#N,c=s.h?s.h:s.b,b,^l`5@vi=n`3':')`5i>=0){g=n`1i+$8n=n`10,i)}`bg=^i;m=`Ri(n)`j(l||(n@V`Ra(n,g)))&&u^6d&&c^6$Y`V`Fd){@p=1;@pl=1`jln`F@8)u=^Fu,'@O:`G@Os:^Vi=^ps:'+s^an+':@I:'+g;b='`Ao=s.d@S`VById(@wi+'\")`5s$9`F!o.#a`H.'+g+'){o.l=1`5o.@2o.#Yo.i=0;`Ra(\"@I\",@wg+'@w(e?',@we+'\"'`f')}';f2=b+'o.c++`5!`d)`d=250`5!o.l$9.c<(`d*2)/$m)o.i=s`Xout(o.f2@7}';f1`7'e',b+'}^V^l`7's`Gc`Gi`Gu`Gf1`Gf2`G`Pe,o=0@6o=s.$Y`V(\"script\")`5o){@C=\"text/`t\"$Bid=i;o.defer=@k;o.o^M=o.onreadystatechange=f1;o.f2=f2;o.l=0;'`f'o@Q=u;c.appendChild(o)$Bc=0;o.i=s`Xout(f2@7'`f'}`eo=0}`4o^Vo=^l(s,c,i,u#N)^Qo`B;o.n=n+':'+g;o.u=u;o.d=d;o.l=l;o.e=e;g=`Rdl`5!g)g=`Rdl`K;i=0;^0i<g`8&&g[i])i++;g#do}}`6@vm=`Ri(n);#H=1}`4m`Cvo1`0t,a`Fa[t]||$h)^O#ca[t]`Cvo2`0t,a`F#l{a#c^O[t]`5#l$h=1}`Cdlt`7'`Ad`l,i,vo,f=0`5`ul)`n0;i<`ul`8^3vo=`ul[i]`5vo`F!`Rm(\"d\")||d.g`X()-$T>=`d){`ul#d0;s.t($3}`bf=1}`j`u@2`ui`Idli=0`5f`F!`ui)`ui=s`Xout(`ut,`d)}`b`ul=0'`Idl`0vo`2,d`l`5!$3vo`B;`c^1,`G$O2',$3;$T=d.g`X()`5!`ul)`ul`K;`ul[`ul`8]=vo`5!`d)`d=250;`ut()`Ct`0vo,id`2,trk=1,tm`l,sed=Math&&@b#6?@b#D@b#6()*$m00000000000):#K`X(),$C='s'+@b#D#K`X()/10800000)%10+sed,y=tm@S$X),vt=tm@SDate($d^HMonth($d'$6y+1900:y)+' ^HHour$e:^HMinute$e:^HSecond$e ^HDay()+#f#K`XzoneO$H(),^l,^4=s.g^4(),ta`g,q`g,qs`g,#7`g,vb`B#M^1`Iuns(`Im_ll()`5!s.td){`Ptl=^4`M,a,o,i,x`g,c`g,v`g,p`g,bw`g,bh`g,^N0',k=^f^pcc`G@k',0@0,hp`g,ct`g,pn=0,ps`5^C&&^C.prototype){^N1'`5j.m#E){^N2'`5tm.setUTCDate){^N3'`5^h^6^n&&`T#h^N4'`5pn.toPrecisio@v^N5';a`K`5a.forEach){^N6';i=0;o`B;^l`7'o`G`Pe,i=0@6i=new Iterator(o)`e}`4i^Vi=^l(o)`5i&&i.next)^N7'}}}}`j`T>=4)x=^rwidth+'x'+^r#4`5s.isns||s.^m`F`T>=3$k`p(@0`5`T>=4){c=^rpixelDepth;bw=`H#L@B;bh=`H#L^k}}$P=s.n.p^S}`6^h`F`T>=4$k`p(@0;c=^r^B`5`T#h{bw=s.d.^A`V.o$H@B;bh=s.d.^A`V.o$H^k`5!s.^n^6b){^l`7's`Gtl`G`Pe,hp=0`vh$v\");hp=s.b.isH$v(tl)?\"Y\":\"N\"`e}`4hp^Vhp=^l(s,tl);^l`7's`G`Pe,ct=0`vclientCaps\");ct=s.b.@f`o^2`e}`4ct^Vct=^l(s$a`br`g`j$P)^0pn<$P`8&&pn<30){ps=^E$P[pn].@4@7#X`5p`3ps)<0)p+=ps;pn++}s.^d=x;s.^B=c;s.`t^t=j;s.`p=v;s.`z@H=k;s.^8@B=bw;s.^8^k=bh;s.@f`o^2=ct;s.@5=hp;s.p^S=p;s.td=1`j$3{`c^1,`G$O2',vb`Ipt(^1,`G$O1',$3`js.useP^S)s.doP^S(s);`Pl=`H`M,r=^4.^A.`a`5!s.^P)s.^P=l^q?l^q:l`5!s.`a@Vs._1_`a^z`a=r;s._1_`a=1`j(vo&&$T)#W`Rm('d'#V`Rm('g')`5s.@M||^G){`Po=^G?^G:s.@M`5!o)`4'';`Pp=s.#P`r,w=1,^K,@q,x=^7t,h,l,i,oc`5^G$9==^G){^0o@Vn$x$bBODY'){o=o^9`V?o^9`V:o^9Node`5!o)`4'';^K;@q;x=^7t}oc=o.`q?''+o.`q:''`5(oc`3$S>=0$9c`3\"^woc(\")<0)||oc`3$s>=0)`4''}ta=n?o$o:1;h$5i=h`3'?^Vh=s.`Q@s^C||i<0?h:h`10,#Yl=s.`Q`r;t=s.`Q^2?s.`Q^2`9:s.lt(h)`5t^bh||l))q+='&pe=@M_'+(t`Sd$c`Se'?@c(t):'o')+(h@tpev1`Zh)`f(l@tpev2`Zl):'^V`btrk=0`5s.^L@g`F!p$fs.^P;w=0}^K;i=o.sourceIndex`5@G')@x@G^Vx=1;i=1`jp&&n$x)qs='&pid`Z^Ep,255))+(w@tpidt$ww`f'&oid`Z^En@7)+(x@toidt$wx`f'&ot`Zt)+(i@toi$wi#i}`j!trk@Vqs)`4'';$4=s.vs(sed)`5trk`F$4)#7=s.mr($C,(vt@tt`Zvt)`fs.hav()+q+(qs?qs:s.rq(^5)),0,id,ta);qs`g;`Rm('t')`5s.p_r)s.p_r(`I`a`g}^I(qs);^Q`u($3;`j$3`c^1,`G$O1',vb`I@M=^G=s.`Q`r=s.`Q^2=`H`m`g`5s.pg)`H^w@M=`H^weo=`H^w`Q`r=`H^w`Q^2`g`5!id@Vs.tc^ztc=1;s.flush`U()}`4#7`Ctl`0o,t,n,vo`2;s.@M=$Go`I`Q^2=t;s.`Q`r=n;s.t($3}`5pg){`H^wco`0o){`P^s\"_\",1,$8`4$Go)`Cwd^wgs`0u@v`P^sun,1,$8`4s.t()`Cwd^wdc`0u@v`P^sun,$8`4s.t()}}@8=(`H`M`k`9`3'@Os^y0`Id=^A;s.b=s.d.body`5s.d@S`V#S`r^zh=s.d@S`V#S`r('HEAD')`5s.h)s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;@e=s.u`3'N$t6/^V`Papn$Z`r,v$Z^t,ie=v`3#B'),o=s.u`3'@a '),i`5v`3'@a^y0||o>0)apn='@a';^h$Q`SMicrosoft Internet Explorer'`Iisns$Q`SN$t'`I^m$Q`S@a'`I^n=(s.u`3'Mac^y0)`5o>0)`T`ws.u`1o+6));`6ie>0){`T=^Ji=v`1ie+5))`5`T>3)`T`wi)}`6@e>0)`T`ws.u`1@e+10));`b`T`wv`Iem=0`5^C#R^u){i=^o^C#R^u(256))`E(`Iem=(i`S%C4%80'?2:(i`S%U0$m'?1:0))}s.sa(un`Ivl_l='^U,`YID,vmk,`Y@T,`D,`D^j,ppu,@L,`Y`r$R,c`L,`z@F,#P`r,^P,`a,@P#0l@E^R,`G`Ivl_t=^R+',^v,$l,server,#P^2,#F`oID,purchaseID,$D,state,zip,#5,products,`Q`r,`Q^2'^W`Pn=1;n<51;n#U@D+=',prop@I,eVar@I,hier@I,list@z^R2=',tnt,pe#A1#A2#A3,^d,^B,`t^t,`p,`z@H,^8@B,^8^k,@f`o^2,@5,p^S';@D+=^R2;@o@E@D,`G`Ivl_g=@D+',`N,`N^j,`NBase,fpC`L,@R`U,#3,`Y^X,`Y^X#Q`OSele`o,`OList,`OM#E,^LDow^MLinks,^L@K,^L@g,`Q@s^C,`QDow^MFile^2s,`QEx`s,`QIn`s,`Q@iVa$n`Q@i^Zs,`Q`rs,@M,eo,_1_`a#0g@E^1,`G`Ipg=pg#M^1)`5!ss)`Hs()",r=window,f=r.s_c_il,b=navigator,x=b.userAgent,t=b.appVersion,o=t.indexOf("MSIE "),d=x.indexOf("Netscape6/"),q,g,y;if(h){h=h.toLowerCase();if(f){for(g=0;g<f.length;g++){y=f[g];if(!y._c||y._c=="s_c"){if(y.oun==h){return y;}else{if(y.fs&&y.sa&&y.fs(y.oun,h)){y.sa(h);return y;}}}}}}r.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";r.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.substring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");r.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");r.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");r.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn(x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");r.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");r.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':a");r.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){if(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")'+c.substring(e+1);s=c.indexOf('=function(')}return c;");p=s_d(p);if(o>0){q=parseInt(g=t.substring(o+5));if(q>3){q=parseFloat(g);}}else{if(d>0){q=parseFloat(x.substring(d+10));}else{q=parseFloat(t);}}if(q>=5&&t.indexOf("Opera")<0&&x.indexOf("Opera")<0){r.s_c=new Function("un","pg","ss","var s=this;"+p);return new s_c(h,k,z);}else{y=new Function("un","pg","ss","var s=new Object;"+s_ft(p)+";return s");}return y(h,k,z);}
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/menu/menu-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
(function(){var S="DIV",O="hd",K="bd",N="ft",X="LI",A="disabled",D="mouseover",F="mouseout",U="mousedown",G="mouseup",R=YAHOO.env.ua.ie?"focusin":"focus",V="click",B="keydown",M="keyup",I="keypress",L="clicktohide",T="position",P="dynamic",Y="showdelay",J="selected",E="visible",W="UL",Q="MenuManager",C=YAHOO.util.Dom,Z=YAHOO.util.Event,H=YAHOO.lang;YAHOO.widget.MenuManager=function(){var a=false,c={},r={},d={},n={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent","focus":"focusEvent","focusin":"focusEvent","blur":"blurEvent","focusout":"blurEvent"},m=null,k=null;function o(u){var s,t;if(u&&u.tagName){switch(u.tagName.toUpperCase()){case S:s=u.parentNode;if((C.hasClass(u,O)||C.hasClass(u,K)||C.hasClass(u,N))&&s&&s.tagName&&s.tagName.toUpperCase()==S){t=s;}else{t=u;}break;case X:t=u;break;default:s=u.parentNode;if(s){t=o(s);}break;}}return t;}function q(w){var s=Z.getTarget(w),t=o(s),y,u,v,AA,z;if(t){u=t.tagName.toUpperCase();if(u==X){v=t.id;if(v&&d[v]){AA=d[v];z=AA.parent;}}else{if(u==S){if(t.id){z=c[t.id];}}}}if(z){y=n[w.type];if(AA&&!AA.cfg.getProperty(A)){AA[y].fire(w);}z[y].fire(w,AA);}else{if(w.type==U){for(var x in r){if(H.hasOwnProperty(r,x)){z=r[x];if(z.cfg.getProperty(L)&&!(z instanceof YAHOO.widget.MenuBar)&&z.cfg.getProperty(T)==P){z.hide();}else{if(z.cfg.getProperty(Y)>0){z._cancelShowDelay();}if(z.activeItem){z.activeItem.blur();z.activeItem.cfg.setProperty(J,false);z.activeItem=null;}}}}}else{if(w.type==R){m=s;}}}}function f(t,s,u){if(c[u.id]){this.removeMenu(u);}}function j(t,s){var u=s[1];if(u){k=u;}}function i(t,s){k=null;}function b(t,s,v){if(v&&v.focus){try{v.focus();}catch(u){}}this.hideEvent.unsubscribe(b,v);}function l(t,s){if(this===this.getRoot()&&this.cfg.getProperty(T)===P){this.hideEvent.subscribe(b,m);this.focus();}}function g(u,t){var s=t[0],v=this.id;if(s){r[v]=this;}else{if(r[v]){delete r[v];}}}function h(t,s){p(this);}function p(t){var s=t.id;if(s&&d[s]){if(k==t){k=null;}delete d[s];t.destroyEvent.unsubscribe(h);}}function e(t,s){var v=s[0],u;if(v instanceof YAHOO.widget.MenuItem){u=v.id;if(!d[u]){d[u]=v;v.destroyEvent.subscribe(h);}}}return{addMenu:function(t){var s;if(t instanceof YAHOO.widget.Menu&&t.id&&!c[t.id]){c[t.id]=t;if(!a){s=document;Z.on(s,D,q,this,true);Z.on(s,F,q,this,true);Z.on(s,U,q,this,true);Z.on(s,G,q,this,true);Z.on(s,V,q,this,true);Z.on(s,B,q,this,true);Z.on(s,M,q,this,true);Z.on(s,I,q,this,true);Z.onFocus(s,q,this,true);Z.onBlur(s,q,this,true);a=true;}t.cfg.subscribeToConfigEvent(E,g);t.destroyEvent.subscribe(f,t,this);t.itemAddedEvent.subscribe(e);t.focusEvent.subscribe(j);t.blurEvent.subscribe(i);t.showEvent.subscribe(l);}},removeMenu:function(v){var t,s,u;if(v){t=v.id;if((t in c)&&(c[t]==v)){s=v.getItems();if(s&&s.length>0){u=s.length-1;do{p(s[u]);}while(u--);}delete c[t];if((t in r)&&(r[t]==v)){delete r[t];}if(v.cfg){v.cfg.unsubscribeFromConfigEvent(E,g);}v.destroyEvent.unsubscribe(f,v);v.itemAddedEvent.unsubscribe(e);v.focusEvent.unsubscribe(j);v.blurEvent.unsubscribe(i);}}},hideVisible:function(){var s;for(var t in r){if(H.hasOwnProperty(r,t)){s=r[t];if(!(s instanceof YAHOO.widget.MenuBar)&&s.cfg.getProperty(T)==P){s.hide();}}}},getVisible:function(){return r;},getMenus:function(){return c;},getMenu:function(t){var s;if(t in c){s=c[t];}return s;},getMenuItem:function(t){var s;if(t in d){s=d[t];}return s;},getMenuItemGroup:function(w){var t=C.get(w),s,y,x,u,v;if(t&&t.tagName&&t.tagName.toUpperCase()==W){y=t.firstChild;if(y){s=[];do{u=y.id;if(u){x=this.getMenuItem(u);if(x){s[s.length]=x;}}}while((y=y.nextSibling));if(s.length>0){v=s;}}}return v;},getFocusedMenuItem:function(){return k;},getFocusedMenu:function(){var s;if(k){s=k.parent.getRoot();}return s;},toString:function(){return Q;}};}();})();(function(){var AN=YAHOO.lang,Ao="Menu",H="DIV",K="div",Ak="id",AI="SELECT",f="xy",R="y",Av="UL",L="ul",AK="first-of-type",l="LI",i="OPTGROUP",Ax="OPTION",Af="disabled",AY="none",z="selected",Ar="groupindex",j="index",O="submenu",As="visible",AX="hidedelay",Ab="position",AE="dynamic",C="static",Al=AE+","+C,Y="windows",Q="url",M="#",V="target",AU="maxheight",T="topscrollbar",y="bottomscrollbar",e="_",P=T+e+Af,E=y+e+Af,c="mousemove",At="showdelay",d="submenuhidedelay",AG="iframe",x="constraintoviewport",A2="preventcontextoverlap",AP="submenualignment",a="autosubmenudisplay",AD="clicktohide",h="container",k="scrollincrement",Ah="minscrollheight",A0="classname",Ae="shadow",Ap="keepopen",Ay="hd",D="hastitle",q="context",v="",Ai="mousedown",Ac="keydown",Am="height",U="width",AR="px",Aw="effect",AF="monitorresize",AW="display",AV="block",J="visibility",AA="absolute",AT="zindex",m="yui-menu-body-scrolled",AL="&#32;",Az=" ",Ag="mouseover",G="mouseout",AS="itemAdded",o="itemRemoved",AM="hidden",t="yui-menu-shadow",AH=t+"-visible",n=t+Az+AH;YAHOO.widget.Menu=function(A4,A3){if(A3){this.parent=A3.parent;this.lazyLoad=A3.lazyLoad||A3.lazyload;this.itemData=A3.itemData||A3.itemdata;}YAHOO.widget.Menu.superclass.constructor.call(this,A4,A3);};function B(A4){var A3=false;if(AN.isString(A4)){A3=(Al.indexOf((A4.toLowerCase()))!=-1);}return A3;}var g=YAHOO.util.Dom,AB=YAHOO.util.Event,Au=YAHOO.widget.Module,AC=YAHOO.widget.Overlay,s=YAHOO.widget.Menu,A1=YAHOO.widget.MenuManager,F=YAHOO.util.CustomEvent,Aq=YAHOO.env.ua,An,Aa=[["mouseOverEvent",Ag],["mouseOutEvent",G],["mouseDownEvent",Ai],["mouseUpEvent","mouseup"],["clickEvent","click"],["keyPressEvent","keypress"],["keyDownEvent",Ac],["keyUpEvent","keyup"],["focusEvent","focus"],["blurEvent","blur"],["itemAddedEvent",AS],["itemRemovedEvent",o]],AZ={key:As,value:false,validator:AN.isBoolean},AQ={key:x,value:true,validator:AN.isBoolean,supercedes:[AG,"x",R,f]},AJ={key:A2,value:true,validator:AN.isBoolean,supercedes:[x]},S={key:Ab,value:AE,validator:B,supercedes:[As,AG]},A={key:AP,value:["tl","tr"]},u={key:a,value:true,validator:AN.isBoolean,suppressEvent:true},Z={key:At,value:250,validator:AN.isNumber,suppressEvent:true},r={key:AX,value:0,validator:AN.isNumber,suppressEvent:true},w={key:d,value:250,validator:AN.isNumber,suppressEvent:true},p={key:AD,value:true,validator:AN.isBoolean,suppressEvent:true},AO={key:h,suppressEvent:true},Ad={key:k,value:1,validator:AN.isNumber,supercedes:[AU],suppressEvent:true},N={key:Ah,value:90,validator:AN.isNumber,supercedes:[AU],suppressEvent:true},X={key:AU,value:0,validator:AN.isNumber,supercedes:[AG],suppressEvent:true},W={key:A0,value:null,validator:AN.isString,suppressEvent:true},b={key:Af,value:false,validator:AN.isBoolean,suppressEvent:true},I={key:Ae,value:true,validator:AN.isBoolean,suppressEvent:true,supercedes:[As]},Aj={key:Ap,value:false,validator:AN.isBoolean};
YAHOO.lang.extend(s,AC,{CSS_CLASS_NAME:"yuimenu",ITEM_TYPE:null,GROUP_TITLE_TAG_NAME:"h6",OFF_SCREEN_POSITION:"-999em",_useHideDelay:false,_bHandledMouseOverEvent:false,_bHandledMouseOutEvent:false,_aGroupTitleElements:null,_aItemGroups:null,_aListElements:null,_nCurrentMouseX:0,_bStopMouseEventHandlers:false,_sClassName:null,lazyLoad:false,itemData:null,activeItem:null,parent:null,srcElement:null,init:function(A5,A4){this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuItem;}var A3;if(AN.isString(A5)){A3=g.get(A5);}else{if(A5.tagName){A3=A5;}}if(A3&&A3.tagName){switch(A3.tagName.toUpperCase()){case H:this.srcElement=A3;if(!A3.id){A3.setAttribute(Ak,g.generateId());}s.superclass.init.call(this,A3);this.beforeInitEvent.fire(s);break;case AI:this.srcElement=A3;s.superclass.init.call(this,g.generateId());this.beforeInitEvent.fire(s);break;}}else{s.superclass.init.call(this,A5);this.beforeInitEvent.fire(s);}if(this.element){g.addClass(this.element,this.CSS_CLASS_NAME);this.initEvent.subscribe(this._onInit);this.beforeRenderEvent.subscribe(this._onBeforeRender);this.renderEvent.subscribe(this._onRender);this.beforeShowEvent.subscribe(this._onBeforeShow);this.hideEvent.subscribe(this._onHide);this.showEvent.subscribe(this._onShow);this.beforeHideEvent.subscribe(this._onBeforeHide);this.mouseOverEvent.subscribe(this._onMouseOver);this.mouseOutEvent.subscribe(this._onMouseOut);this.clickEvent.subscribe(this._onClick);this.keyDownEvent.subscribe(this._onKeyDown);this.keyPressEvent.subscribe(this._onKeyPress);this.blurEvent.subscribe(this._onBlur);if((Aq.gecko&&Aq.gecko<1.9)||Aq.webkit){this.cfg.subscribeToConfigEvent(R,this._onYChange);}if(A4){this.cfg.applyConfig(A4,true);}A1.addMenu(this);this.initEvent.fire(s);}},_initSubTree:function(){var A4=this.srcElement,A3,A6,A9,BA,A8,A7,A5;if(A4){A3=(A4.tagName&&A4.tagName.toUpperCase());if(A3==H){BA=this.body.firstChild;if(BA){A6=0;A9=this.GROUP_TITLE_TAG_NAME.toUpperCase();do{if(BA&&BA.tagName){switch(BA.tagName.toUpperCase()){case A9:this._aGroupTitleElements[A6]=BA;break;case Av:this._aListElements[A6]=BA;this._aItemGroups[A6]=[];A6++;break;}}}while((BA=BA.nextSibling));if(this._aListElements[0]){g.addClass(this._aListElements[0],AK);}}}BA=null;if(A3){switch(A3){case H:A8=this._aListElements;A7=A8.length;if(A7>0){A5=A7-1;do{BA=A8[A5].firstChild;if(BA){do{if(BA&&BA.tagName&&BA.tagName.toUpperCase()==l){this.addItem(new this.ITEM_TYPE(BA,{parent:this}),A5);}}while((BA=BA.nextSibling));}}while(A5--);}break;case AI:BA=A4.firstChild;do{if(BA&&BA.tagName){switch(BA.tagName.toUpperCase()){case i:case Ax:this.addItem(new this.ITEM_TYPE(BA,{parent:this}));break;}}}while((BA=BA.nextSibling));break;}}}},_getFirstEnabledItem:function(){var A3=this.getItems(),A7=A3.length,A6,A5;for(var A4=0;A4<A7;A4++){A6=A3[A4];if(A6&&!A6.cfg.getProperty(Af)&&A6.element.style.display!=AY){A5=A6;break;}}return A5;},_addItemToGroup:function(A8,A9,BD){var BB,BE,A6,BC,A7,A4,A5,BA;function A3(BF,BG){return(BF[BG]||A3(BF,(BG+1)));}if(A9 instanceof this.ITEM_TYPE){BB=A9;BB.parent=this;}else{if(AN.isString(A9)){BB=new this.ITEM_TYPE(A9,{parent:this});}else{if(AN.isObject(A9)){A9.parent=this;BB=new this.ITEM_TYPE(A9.text,A9);}}}if(BB){if(BB.cfg.getProperty(z)){this.activeItem=BB;}BE=AN.isNumber(A8)?A8:0;A6=this._getItemGroup(BE);if(!A6){A6=this._createItemGroup(BE);}if(AN.isNumber(BD)){A7=(BD>=A6.length);if(A6[BD]){A6.splice(BD,0,BB);}else{A6[BD]=BB;}BC=A6[BD];if(BC){if(A7&&(!BC.element.parentNode||BC.element.parentNode.nodeType==11)){this._aListElements[BE].appendChild(BC.element);}else{A4=A3(A6,(BD+1));if(A4&&(!BC.element.parentNode||BC.element.parentNode.nodeType==11)){this._aListElements[BE].insertBefore(BC.element,A4.element);}}BC.parent=this;this._subscribeToItemEvents(BC);this._configureSubmenu(BC);this._updateItemProperties(BE);this.itemAddedEvent.fire(BC);this.changeContentEvent.fire();BA=BC;}}else{A5=A6.length;A6[A5]=BB;BC=A6[A5];if(BC){if(!g.isAncestor(this._aListElements[BE],BC.element)){this._aListElements[BE].appendChild(BC.element);}BC.element.setAttribute(Ar,BE);BC.element.setAttribute(j,A5);BC.parent=this;BC.index=A5;BC.groupIndex=BE;this._subscribeToItemEvents(BC);this._configureSubmenu(BC);if(A5===0){g.addClass(BC.element,AK);}this.itemAddedEvent.fire(BC);this.changeContentEvent.fire();BA=BC;}}}return BA;},_removeItemFromGroupByIndex:function(A6,A4){var A5=AN.isNumber(A6)?A6:0,A7=this._getItemGroup(A5),A9,A8,A3;if(A7){A9=A7.splice(A4,1);A8=A9[0];if(A8){this._updateItemProperties(A5);if(A7.length===0){A3=this._aListElements[A5];if(this.body&&A3){this.body.removeChild(A3);}this._aItemGroups.splice(A5,1);this._aListElements.splice(A5,1);A3=this._aListElements[0];if(A3){g.addClass(A3,AK);}}this.itemRemovedEvent.fire(A8);this.changeContentEvent.fire();}}return A8;},_removeItemFromGroupByValue:function(A6,A3){var A8=this._getItemGroup(A6),A9,A7,A5,A4;if(A8){A9=A8.length;A7=-1;if(A9>0){A4=A9-1;do{if(A8[A4]==A3){A7=A4;break;}}while(A4--);if(A7>-1){A5=this._removeItemFromGroupByIndex(A6,A7);}}}return A5;},_updateItemProperties:function(A4){var A5=this._getItemGroup(A4),A8=A5.length,A7,A6,A3;if(A8>0){A3=A8-1;do{A7=A5[A3];if(A7){A6=A7.element;A7.index=A3;A7.groupIndex=A4;A6.setAttribute(Ar,A4);A6.setAttribute(j,A3);g.removeClass(A6,AK);}}while(A3--);if(A6){g.addClass(A6,AK);}}},_createItemGroup:function(A5){var A3,A4;if(!this._aItemGroups[A5]){this._aItemGroups[A5]=[];A3=document.createElement(L);this._aListElements[A5]=A3;A4=this._aItemGroups[A5];}return A4;},_getItemGroup:function(A5){var A3=AN.isNumber(A5)?A5:0,A6=this._aItemGroups,A4;if(A3 in A6){A4=A6[A3];}return A4;},_configureSubmenu:function(A3){var A4=A3.cfg.getProperty(O);if(A4){this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange,A4,true);this.renderEvent.subscribe(this._onParentMenuRender,A4,true);}},_subscribeToItemEvents:function(A3){A3.destroyEvent.subscribe(this._onMenuItemDestroy,A3,this);A3.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,A3,this);
},_onVisibleChange:function(A5,A4){var A3=A4[0];if(A3){g.addClass(this.element,As);}else{g.removeClass(this.element,As);}},_cancelHideDelay:function(){var A3=this.getRoot()._hideDelayTimer;if(A3){A3.cancel();}},_execHideDelay:function(){this._cancelHideDelay();var A3=this.getRoot();A3._hideDelayTimer=AN.later(A3.cfg.getProperty(AX),this,function(){if(A3.activeItem){if(A3.hasFocus()){A3.activeItem.focus();}A3.clearActiveItem();}if(A3==this&&!(this instanceof YAHOO.widget.MenuBar)&&this.cfg.getProperty(Ab)==AE){this.hide();}});},_cancelShowDelay:function(){var A3=this.getRoot()._showDelayTimer;if(A3){A3.cancel();}},_execSubmenuHideDelay:function(A5,A4,A3){A5._submenuHideDelayTimer=AN.later(50,this,function(){if(this._nCurrentMouseX>(A4+10)){A5._submenuHideDelayTimer=AN.later(A3,A5,function(){this.hide();});}else{A5.hide();}});},_disableScrollHeader:function(){if(!this._bHeaderDisabled){g.addClass(this.header,P);this._bHeaderDisabled=true;}},_disableScrollFooter:function(){if(!this._bFooterDisabled){g.addClass(this.footer,E);this._bFooterDisabled=true;}},_enableScrollHeader:function(){if(this._bHeaderDisabled){g.removeClass(this.header,P);this._bHeaderDisabled=false;}},_enableScrollFooter:function(){if(this._bFooterDisabled){g.removeClass(this.footer,E);this._bFooterDisabled=false;}},_onMouseOver:function(BF,A8){var BG=A8[0],BC=A8[1],A3=AB.getTarget(BG),A7=this.getRoot(),BE=this._submenuHideDelayTimer,A4,A6,BB,A5,BA,A9;var BD=function(){if(this.parent.cfg.getProperty(z)){this.show();}};if(!this._bStopMouseEventHandlers){if(!this._bHandledMouseOverEvent&&(A3==this.element||g.isAncestor(this.element,A3))){if(this._useHideDelay){this._cancelHideDelay();}this._nCurrentMouseX=0;AB.on(this.element,c,this._onMouseMove,this,true);if(!(BC&&g.isAncestor(BC.element,AB.getRelatedTarget(BG)))){this.clearActiveItem();}if(this.parent&&BE){BE.cancel();this.parent.cfg.setProperty(z,true);A4=this.parent.parent;A4._bHandledMouseOutEvent=true;A4._bHandledMouseOverEvent=false;}this._bHandledMouseOverEvent=true;this._bHandledMouseOutEvent=false;}if(BC&&!BC.handledMouseOverEvent&&!BC.cfg.getProperty(Af)&&(A3==BC.element||g.isAncestor(BC.element,A3))){A6=this.cfg.getProperty(At);BB=(A6>0);if(BB){this._cancelShowDelay();}A5=this.activeItem;if(A5){A5.cfg.setProperty(z,false);}BA=BC.cfg;BA.setProperty(z,true);if(this.hasFocus()||A7._hasFocus){BC.focus();A7._hasFocus=false;}if(this.cfg.getProperty(a)){A9=BA.getProperty(O);if(A9){if(BB){A7._showDelayTimer=AN.later(A7.cfg.getProperty(At),A9,BD);}else{A9.show();}}}BC.handledMouseOverEvent=true;BC.handledMouseOutEvent=false;}}},_onMouseOut:function(BB,A5){var BC=A5[0],A9=A5[1],A6=AB.getRelatedTarget(BC),BA=false,A8,A7,A3,A4;if(!this._bStopMouseEventHandlers){if(A9&&!A9.cfg.getProperty(Af)){A8=A9.cfg;A7=A8.getProperty(O);if(A7&&(A6==A7.element||g.isAncestor(A7.element,A6))){BA=true;}if(!A9.handledMouseOutEvent&&((A6!=A9.element&&!g.isAncestor(A9.element,A6))||BA)){if(!BA){A9.cfg.setProperty(z,false);if(A7){A3=this.cfg.getProperty(d);A4=this.cfg.getProperty(At);if(!(this instanceof YAHOO.widget.MenuBar)&&A3>0&&A4>=A3){this._execSubmenuHideDelay(A7,AB.getPageX(BC),A3);}else{A7.hide();}}}A9.handledMouseOutEvent=true;A9.handledMouseOverEvent=false;}}if(!this._bHandledMouseOutEvent&&((A6!=this.element&&!g.isAncestor(this.element,A6))||BA)){if(this._useHideDelay){this._execHideDelay();}AB.removeListener(this.element,c,this._onMouseMove);this._nCurrentMouseX=AB.getPageX(BC);this._bHandledMouseOutEvent=true;this._bHandledMouseOverEvent=false;}}},_onMouseMove:function(A4,A3){if(!this._bStopMouseEventHandlers){this._nCurrentMouseX=AB.getPageX(A4);}},_onClick:function(BE,A5){var BF=A5[0],A9=A5[1],BB=false,A7,BC,A4,A3,A8,BA,BD;var A6=function(){if(!((Aq.gecko&&this.platform==Y)&&BF.button>0)){A4=this.getRoot();if(A4 instanceof YAHOO.widget.MenuBar||A4.cfg.getProperty(Ab)==C){A4.clearActiveItem();}else{A4.hide();}}};if(A9){if(A9.cfg.getProperty(Af)){AB.preventDefault(BF);A6.call(this);}else{A7=A9.cfg.getProperty(O);A8=A9.cfg.getProperty(Q);if(A8){BA=A8.indexOf(M);BD=A8.length;if(BA!=-1){A8=A8.substr(BA,BD);BD=A8.length;if(BD>1){A3=A8.substr(1,BD);BC=YAHOO.widget.MenuManager.getMenu(A3);if(BC){BB=(this.getRoot()===BC.getRoot());}}else{if(BD===1){BB=true;}}}}if(BB&&!A9.cfg.getProperty(V)){AB.preventDefault(BF);if(Aq.webkit){A9.focus();}else{A9.focusEvent.fire();}}if(!A7&&!this.cfg.getProperty(Ap)){A6.call(this);}}}},_onKeyDown:function(BH,BB){var BE=BB[0],BD=BB[1],BA,BF,A4,A8,BI,A3,BK,A7,BG,A6,BC,BJ,A9;if(this._useHideDelay){this._cancelHideDelay();}function A5(){this._bStopMouseEventHandlers=true;AN.later(10,this,function(){this._bStopMouseEventHandlers=false;});}if(BD&&!BD.cfg.getProperty(Af)){BF=BD.cfg;A4=this.parent;switch(BE.keyCode){case 38:case 40:BI=(BE.keyCode==38)?BD.getPreviousEnabledSibling():BD.getNextEnabledSibling();if(BI){this.clearActiveItem();BI.cfg.setProperty(z,true);BI.focus();if(this.cfg.getProperty(AU)>0){A3=this.body;BK=A3.scrollTop;A7=A3.offsetHeight;BG=this.getItems();A6=BG.length-1;BC=BI.element.offsetTop;if(BE.keyCode==40){if(BC>=(A7+BK)){A3.scrollTop=BC-A7;}else{if(BC<=BK){A3.scrollTop=0;}}if(BI==BG[A6]){A3.scrollTop=BI.element.offsetTop;}}else{if(BC<=BK){A3.scrollTop=BC-BI.element.offsetHeight;}else{if(BC>=(BK+A7)){A3.scrollTop=BC;}}if(BI==BG[0]){A3.scrollTop=0;}}BK=A3.scrollTop;BJ=A3.scrollHeight-A3.offsetHeight;if(BK===0){this._disableScrollHeader();this._enableScrollFooter();}else{if(BK==BJ){this._enableScrollHeader();this._disableScrollFooter();}else{this._enableScrollHeader();this._enableScrollFooter();}}}}AB.preventDefault(BE);A5();break;case 39:BA=BF.getProperty(O);if(BA){if(!BF.getProperty(z)){BF.setProperty(z,true);}BA.show();BA.setInitialFocus();BA.setInitialSelection();}else{A8=this.getRoot();if(A8 instanceof YAHOO.widget.MenuBar){BI=A8.activeItem.getNextEnabledSibling();if(BI){A8.clearActiveItem();BI.cfg.setProperty(z,true);BA=BI.cfg.getProperty(O);if(BA){BA.show();BA.setInitialFocus();}else{BI.focus();}}}}AB.preventDefault(BE);A5();break;case 37:if(A4){A9=A4.parent;
if(A9 instanceof YAHOO.widget.MenuBar){BI=A9.activeItem.getPreviousEnabledSibling();if(BI){A9.clearActiveItem();BI.cfg.setProperty(z,true);BA=BI.cfg.getProperty(O);if(BA){BA.show();BA.setInitialFocus();}else{BI.focus();}}}else{this.hide();A4.focus();}}AB.preventDefault(BE);A5();break;}}if(BE.keyCode==27){if(this.cfg.getProperty(Ab)==AE){this.hide();if(this.parent){this.parent.focus();}}else{if(this.activeItem){BA=this.activeItem.cfg.getProperty(O);if(BA&&BA.cfg.getProperty(As)){BA.hide();this.activeItem.focus();}else{this.activeItem.blur();this.activeItem.cfg.setProperty(z,false);}}}AB.preventDefault(BE);}},_onKeyPress:function(A5,A4){var A3=A4[0];if(A3.keyCode==40||A3.keyCode==38){AB.preventDefault(A3);}},_onBlur:function(A4,A3){if(this._hasFocus){this._hasFocus=false;}},_onYChange:function(A4,A3){var A6=this.parent,A8,A5,A7;if(A6){A8=A6.parent.body.scrollTop;if(A8>0){A7=(this.cfg.getProperty(R)-A8);g.setY(this.element,A7);A5=this.iframe;if(A5){g.setY(A5,A7);}this.cfg.setProperty(R,A7,true);}}},_onScrollTargetMouseOver:function(A9,BC){var BB=this._bodyScrollTimer;if(BB){BB.cancel();}this._cancelHideDelay();var A5=AB.getTarget(A9),A7=this.body,A6=this.cfg.getProperty(k),A3,A4;function BA(){var BD=A7.scrollTop;if(BD<A3){A7.scrollTop=(BD+A6);this._enableScrollHeader();}else{A7.scrollTop=A3;this._bodyScrollTimer.cancel();this._disableScrollFooter();}}function A8(){var BD=A7.scrollTop;if(BD>0){A7.scrollTop=(BD-A6);this._enableScrollFooter();}else{A7.scrollTop=0;this._bodyScrollTimer.cancel();this._disableScrollHeader();}}if(g.hasClass(A5,Ay)){A4=A8;}else{A3=A7.scrollHeight-A7.offsetHeight;A4=BA;}this._bodyScrollTimer=AN.later(10,this,A4,null,true);},_onScrollTargetMouseOut:function(A5,A3){var A4=this._bodyScrollTimer;if(A4){A4.cancel();}this._cancelHideDelay();},_onInit:function(A4,A3){this.cfg.subscribeToConfigEvent(As,this._onVisibleChange);var A5=!this.parent,A6=this.lazyLoad;if(((A5&&!A6)||(A5&&(this.cfg.getProperty(As)||this.cfg.getProperty(Ab)==C))||(!A5&&!A6))&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();}if(this.itemData){this.addItems(this.itemData);}}else{if(A6){this.cfg.fireQueue();}}},_onBeforeRender:function(A6,A5){var A7=this.element,BA=this._aListElements.length,A4=true,A9=0,A3,A8;if(BA>0){do{A3=this._aListElements[A9];if(A3){if(A4){g.addClass(A3,AK);A4=false;}if(!g.isAncestor(A7,A3)){this.appendToBody(A3);}A8=this._aGroupTitleElements[A9];if(A8){if(!g.isAncestor(A7,A8)){A3.parentNode.insertBefore(A8,A3);}g.addClass(A3,D);}}A9++;}while(A9<BA);}},_onRender:function(A4,A3){if(this.cfg.getProperty(Ab)==AE){if(!this.cfg.getProperty(As)){this.positionOffScreen();}}},_onBeforeShow:function(A5,A4){var A7,BA,A6,A8=this.cfg.getProperty(h);if(this.lazyLoad&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();}if(this.itemData){if(this.parent&&this.parent.parent&&this.parent.parent.srcElement&&this.parent.parent.srcElement.tagName.toUpperCase()==AI){A7=this.itemData.length;for(BA=0;BA<A7;BA++){if(this.itemData[BA].tagName){this.addItem((new this.ITEM_TYPE(this.itemData[BA])));}}}else{this.addItems(this.itemData);}}A6=this.srcElement;if(A6){if(A6.tagName.toUpperCase()==AI){if(g.inDocument(A6)){this.render(A6.parentNode);}else{this.render(A8);}}else{this.render();}}else{if(this.parent){this.render(this.parent.element);}else{this.render(A8);}}}var A9=this.parent,A3;if(!A9&&this.cfg.getProperty(Ab)==AE){this.cfg.refireEvent(f);}if(A9){A3=A9.parent.cfg.getProperty(AP);this.cfg.setProperty(q,[A9.element,A3[0],A3[1]]);this.align();}},getConstrainedY:function(BF){var BQ=this,BM=BQ.cfg.getProperty(q),BT=BQ.cfg.getProperty(AU),BP,BE={"trbr":true,"tlbl":true,"bltl":true,"brtr":true},A8=(BM&&BE[BM[1]+BM[2]]),BA=BQ.element,BU=BA.offsetHeight,BO=AC.VIEWPORT_OFFSET,BJ=g.getViewportHeight(),BN=g.getDocumentScrollTop(),BK=(BQ.cfg.getProperty(Ah)+BO<BJ),BS,BB,BH,BI,BD=false,BC,A5,BG=BN+BO,A7=BN+BJ-BU-BO,A3=BF;var A9=function(){var BV;if((BQ.cfg.getProperty(R)-BN)>BH){BV=(BH-BU);}else{BV=(BH+BI);}BQ.cfg.setProperty(R,(BV+BN),true);return BV;};var A6=function(){if((BQ.cfg.getProperty(R)-BN)>BH){return(A5-BO);}else{return(BC-BO);}};var BL=function(){var BV;if((BQ.cfg.getProperty(R)-BN)>BH){BV=(BH+BI);}else{BV=(BH-BA.offsetHeight);}BQ.cfg.setProperty(R,(BV+BN),true);};var A4=function(){BQ._setScrollHeight(this.cfg.getProperty(AU));BQ.hideEvent.unsubscribe(A4);};var BR=function(){var BY=A6(),BV=(BQ.getItems().length>0),BX,BW;if(BU>BY){BX=BV?BQ.cfg.getProperty(Ah):BU;if((BY>BX)&&BV){BP=BY;}else{BP=BT;}BQ._setScrollHeight(BP);BQ.hideEvent.subscribe(A4);BL();if(BY<BX){if(BD){A9();}else{A9();BD=true;BW=BR();}}}else{if(BP&&(BP!==BT)){BQ._setScrollHeight(BT);BQ.hideEvent.subscribe(A4);BL();}}return BW;};if(BF<BG||BF>A7){if(BK){if(BQ.cfg.getProperty(A2)&&A8){BB=BM[0];BI=BB.offsetHeight;BH=(g.getY(BB)-BN);BC=BH;A5=(BJ-(BH+BI));BR();A3=BQ.cfg.getProperty(R);}else{if(!(BQ instanceof YAHOO.widget.MenuBar)&&BU>=BJ){BS=(BJ-(BO*2));if(BS>BQ.cfg.getProperty(Ah)){BQ._setScrollHeight(BS);BQ.hideEvent.subscribe(A4);BL();A3=BQ.cfg.getProperty(R);}}else{if(BF<BG){A3=BG;}else{if(BF>A7){A3=A7;}}}}}else{A3=BO+BN;}}return A3;},_onHide:function(A4,A3){if(this.cfg.getProperty(Ab)===AE){this.positionOffScreen();}},_onShow:function(BB,A9){var A3=this.parent,A5,A6,A8,A4;function A7(BD){var BC;if(BD.type==Ai||(BD.type==Ac&&BD.keyCode==27)){BC=AB.getTarget(BD);if(BC!=A5.element||!g.isAncestor(A5.element,BC)){A5.cfg.setProperty(a,false);AB.removeListener(document,Ai,A7);AB.removeListener(document,Ac,A7);}}}function BA(BD,BC,BE){this.cfg.setProperty(U,v);this.hideEvent.unsubscribe(BA,BE);}if(A3){A5=A3.parent;if(!A5.cfg.getProperty(a)&&(A5 instanceof YAHOO.widget.MenuBar||A5.cfg.getProperty(Ab)==C)){A5.cfg.setProperty(a,true);AB.on(document,Ai,A7);AB.on(document,Ac,A7);}if((this.cfg.getProperty("x")<A5.cfg.getProperty("x"))&&(Aq.gecko&&Aq.gecko<1.9)&&!this.cfg.getProperty(U)){A6=this.element;A8=A6.offsetWidth;A6.style.width=A8+AR;A4=(A8-(A6.offsetWidth-A8))+AR;this.cfg.setProperty(U,A4);this.hideEvent.subscribe(BA,A4);
}}},_onBeforeHide:function(A5,A4){var A3=this.activeItem,A7=this.getRoot(),A8,A6;if(A3){A8=A3.cfg;A8.setProperty(z,false);A6=A8.getProperty(O);if(A6){A6.hide();}}if(Aq.ie&&this.cfg.getProperty(Ab)===AE&&this.parent){A7._hasFocus=this.hasFocus();}if(A7==this){A7.blur();}},_onParentMenuConfigChange:function(A4,A3,A7){var A5=A3[0][0],A6=A3[0][1];switch(A5){case AG:case x:case AX:case At:case d:case AD:case Aw:case A0:case k:case AU:case Ah:case AF:case Ae:case A2:A7.cfg.setProperty(A5,A6);break;case AP:if(!(this.parent.parent instanceof YAHOO.widget.MenuBar)){A7.cfg.setProperty(A5,A6);}break;}},_onParentMenuRender:function(A4,A3,A9){var A6=A9.parent.parent,A5=A6.cfg,A7={constraintoviewport:A5.getProperty(x),xy:[0,0],clicktohide:A5.getProperty(AD),effect:A5.getProperty(Aw),showdelay:A5.getProperty(At),hidedelay:A5.getProperty(AX),submenuhidedelay:A5.getProperty(d),classname:A5.getProperty(A0),scrollincrement:A5.getProperty(k),maxheight:A5.getProperty(AU),minscrollheight:A5.getProperty(Ah),iframe:A5.getProperty(AG),shadow:A5.getProperty(Ae),preventcontextoverlap:A5.getProperty(A2),monitorresize:A5.getProperty(AF)},A8;if(!(A6 instanceof YAHOO.widget.MenuBar)){A7[AP]=A5.getProperty(AP);}A9.cfg.applyConfig(A7);if(!this.lazyLoad){A8=this.parent.element;if(this.element.parentNode==A8){this.render();}else{this.render(A8);}}},_onMenuItemDestroy:function(A5,A4,A3){this._removeItemFromGroupByValue(A3.groupIndex,A3);},_onMenuItemConfigChange:function(A5,A4,A3){var A7=A4[0][0],A8=A4[0][1],A6;switch(A7){case z:if(A8===true){this.activeItem=A3;}break;case O:A6=A4[0][1];if(A6){this._configureSubmenu(A3);}break;}},configVisible:function(A5,A4,A6){var A3,A7;if(this.cfg.getProperty(Ab)==AE){s.superclass.configVisible.call(this,A5,A4,A6);}else{A3=A4[0];A7=g.getStyle(this.element,AW);g.setStyle(this.element,J,As);if(A3){if(A7!=AV){this.beforeShowEvent.fire();g.setStyle(this.element,AW,AV);this.showEvent.fire();}}else{if(A7==AV){this.beforeHideEvent.fire();g.setStyle(this.element,AW,AY);this.hideEvent.fire();}}}},configPosition:function(A5,A4,A8){var A7=this.element,A6=A4[0]==C?C:AA,A9=this.cfg,A3;g.setStyle(A7,Ab,A6);if(A6==C){g.setStyle(A7,AW,AV);A9.setProperty(As,true);}else{g.setStyle(A7,J,AM);}if(A6==AA){A3=A9.getProperty(AT);if(!A3||A3===0){A9.setProperty(AT,1);}}},configIframe:function(A4,A3,A5){if(this.cfg.getProperty(Ab)==AE){s.superclass.configIframe.call(this,A4,A3,A5);}},configHideDelay:function(A4,A3,A5){var A6=A3[0];this._useHideDelay=(A6>0);},configContainer:function(A4,A3,A6){var A5=A3[0];if(AN.isString(A5)){this.cfg.setProperty(h,g.get(A5),true);}},_clearSetWidthFlag:function(){this._widthSetForScroll=false;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);},_setScrollHeight:function(BE){var BA=BE,A9=false,BF=false,A6,A7,BD,A4,BC,BG,A3,BB,A8,A5;if(this.getItems().length>0){A6=this.element;A7=this.body;BD=this.header;A4=this.footer;BC=this._onScrollTargetMouseOver;BG=this._onScrollTargetMouseOut;A3=this.cfg.getProperty(Ah);if(BA>0&&BA<A3){BA=A3;}g.setStyle(A7,Am,v);g.removeClass(A7,m);A7.scrollTop=0;BF=((Aq.gecko&&Aq.gecko<1.9)||Aq.ie);if(BA>0&&BF&&!this.cfg.getProperty(U)){A8=A6.offsetWidth;A6.style.width=A8+AR;A5=(A8-(A6.offsetWidth-A8))+AR;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);this.cfg.setProperty(U,A5);this._widthSetForScroll=true;this.cfg.subscribeToConfigEvent(U,this._clearSetWidthFlag);}if(BA>0&&(!BD&&!A4)){this.setHeader(AL);this.setFooter(AL);BD=this.header;A4=this.footer;g.addClass(BD,T);g.addClass(A4,y);A6.insertBefore(BD,A7);A6.appendChild(A4);}BB=BA;if(BD&&A4){BB=(BB-(BD.offsetHeight+A4.offsetHeight));}if((BB>0)&&(A7.offsetHeight>BA)){g.addClass(A7,m);g.setStyle(A7,Am,(BB+AR));if(!this._hasScrollEventHandlers){AB.on(BD,Ag,BC,this,true);AB.on(BD,G,BG,this,true);AB.on(A4,Ag,BC,this,true);AB.on(A4,G,BG,this,true);this._hasScrollEventHandlers=true;}this._disableScrollHeader();this._enableScrollFooter();A9=true;}else{if(BD&&A4){if(this._widthSetForScroll){this._widthSetForScroll=false;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);this.cfg.setProperty(U,v);}this._enableScrollHeader();this._enableScrollFooter();if(this._hasScrollEventHandlers){AB.removeListener(BD,Ag,BC);AB.removeListener(BD,G,BG);AB.removeListener(A4,Ag,BC);AB.removeListener(A4,G,BG);this._hasScrollEventHandlers=false;}A6.removeChild(BD);A6.removeChild(A4);this.header=null;this.footer=null;A9=true;}}if(A9){this.cfg.refireEvent(AG);this.cfg.refireEvent(Ae);}}},_setMaxHeight:function(A4,A3,A5){this._setScrollHeight(A5);this.renderEvent.unsubscribe(this._setMaxHeight);},configMaxHeight:function(A4,A3,A5){var A6=A3[0];if(this.lazyLoad&&!this.body&&A6>0){this.renderEvent.subscribe(this._setMaxHeight,A6,this);}else{this._setScrollHeight(A6);}},configClassName:function(A5,A4,A6){var A3=A4[0];if(this._sClassName){g.removeClass(this.element,this._sClassName);}g.addClass(this.element,A3);this._sClassName=A3;},_onItemAdded:function(A4,A3){var A5=A3[0];if(A5){A5.cfg.setProperty(Af,true);}},configDisabled:function(A5,A4,A8){var A7=A4[0],A3=this.getItems(),A9,A6;if(AN.isArray(A3)){A9=A3.length;if(A9>0){A6=A9-1;do{A3[A6].cfg.setProperty(Af,A7);}while(A6--);}if(A7){this.clearActiveItem(true);g.addClass(this.element,Af);this.itemAddedEvent.subscribe(this._onItemAdded);}else{g.removeClass(this.element,Af);this.itemAddedEvent.unsubscribe(this._onItemAdded);}}},configShadow:function(BB,A5,BA){var A9=function(){var BE=this.element,BD=this._shadow;if(BD&&BE){if(BD.style.width&&BD.style.height){BD.style.width=v;BD.style.height=v;}BD.style.width=(BE.offsetWidth+6)+AR;BD.style.height=(BE.offsetHeight+1)+AR;}};var BC=function(){this.element.appendChild(this._shadow);};var A7=function(){g.addClass(this._shadow,AH);};var A8=function(){g.removeClass(this._shadow,AH);};var A4=function(){var BE=this._shadow,BD;if(!BE){BD=this.element;if(!An){An=document.createElement(K);An.className=n;}BE=An.cloneNode(false);BD.appendChild(BE);this._shadow=BE;this.beforeShowEvent.subscribe(A7);this.beforeHideEvent.subscribe(A8);
if(Aq.ie){AN.later(0,this,function(){A9.call(this);this.syncIframe();});this.cfg.subscribeToConfigEvent(U,A9);this.cfg.subscribeToConfigEvent(Am,A9);this.cfg.subscribeToConfigEvent(AU,A9);this.changeContentEvent.subscribe(A9);Au.textResizeEvent.subscribe(A9,this,true);this.destroyEvent.subscribe(function(){Au.textResizeEvent.unsubscribe(A9,this);});}this.cfg.subscribeToConfigEvent(AU,BC);}};var A6=function(){if(this._shadow){BC.call(this);if(Aq.ie){A9.call(this);}}else{A4.call(this);}this.beforeShowEvent.unsubscribe(A6);};var A3=A5[0];if(A3&&this.cfg.getProperty(Ab)==AE){if(this.cfg.getProperty(As)){if(this._shadow){BC.call(this);if(Aq.ie){A9.call(this);}}else{A4.call(this);}}else{this.beforeShowEvent.subscribe(A6);}}},initEvents:function(){s.superclass.initEvents.call(this);var A4=Aa.length-1,A5,A3;do{A5=Aa[A4];A3=this.createEvent(A5[1]);A3.signature=F.LIST;this[A5[0]]=A3;}while(A4--);},positionOffScreen:function(){var A4=this.iframe,A5=this.element,A3=this.OFF_SCREEN_POSITION;A5.style.top=v;A5.style.left=v;if(A4){A4.style.top=A3;A4.style.left=A3;}},getRoot:function(){var A5=this.parent,A4,A3;if(A5){A4=A5.parent;A3=A4?A4.getRoot():this;}else{A3=this;}return A3;},toString:function(){var A4=Ao,A3=this.id;if(A3){A4+=(Az+A3);}return A4;},setItemGroupTitle:function(A8,A7){var A6,A5,A4,A3;if(AN.isString(A8)&&A8.length>0){A6=AN.isNumber(A7)?A7:0;A5=this._aGroupTitleElements[A6];if(A5){A5.innerHTML=A8;}else{A5=document.createElement(this.GROUP_TITLE_TAG_NAME);A5.innerHTML=A8;this._aGroupTitleElements[A6]=A5;}A4=this._aGroupTitleElements.length-1;do{if(this._aGroupTitleElements[A4]){g.removeClass(this._aGroupTitleElements[A4],AK);A3=A4;}}while(A4--);if(A3!==null){g.addClass(this._aGroupTitleElements[A3],AK);}this.changeContentEvent.fire();}},addItem:function(A3,A4){return this._addItemToGroup(A4,A3);},addItems:function(A7,A6){var A9,A3,A8,A4,A5;if(AN.isArray(A7)){A9=A7.length;A3=[];for(A4=0;A4<A9;A4++){A8=A7[A4];if(A8){if(AN.isArray(A8)){A3[A3.length]=this.addItems(A8,A4);}else{A3[A3.length]=this._addItemToGroup(A6,A8);}}}if(A3.length){A5=A3;}}return A5;},insertItem:function(A3,A4,A5){return this._addItemToGroup(A5,A3,A4);},removeItem:function(A3,A5){var A6,A4;if(!AN.isUndefined(A3)){if(A3 instanceof YAHOO.widget.MenuItem){A6=this._removeItemFromGroupByValue(A5,A3);}else{if(AN.isNumber(A3)){A6=this._removeItemFromGroupByIndex(A5,A3);}}if(A6){A6.destroy();A4=A6;}}return A4;},getItems:function(){var A6=this._aItemGroups,A4,A5,A3=[];if(AN.isArray(A6)){A4=A6.length;A5=((A4==1)?A6[0]:(Array.prototype.concat.apply(A3,A6)));}return A5;},getItemGroups:function(){return this._aItemGroups;},getItem:function(A4,A5){var A6,A3;if(AN.isNumber(A4)){A6=this._getItemGroup(A5);if(A6){A3=A6[A4];}}return A3;},getSubmenus:function(){var A4=this.getItems(),A8=A4.length,A3,A5,A7,A6;if(A8>0){A3=[];for(A6=0;A6<A8;A6++){A7=A4[A6];if(A7){A5=A7.cfg.getProperty(O);if(A5){A3[A3.length]=A5;}}}}return A3;},clearContent:function(){var A7=this.getItems(),A4=A7.length,A5=this.element,A6=this.body,BB=this.header,A3=this.footer,BA,A9,A8;if(A4>0){A8=A4-1;do{BA=A7[A8];if(BA){A9=BA.cfg.getProperty(O);if(A9){this.cfg.configChangedEvent.unsubscribe(this._onParentMenuConfigChange,A9);this.renderEvent.unsubscribe(this._onParentMenuRender,A9);}this.removeItem(BA,BA.groupIndex);}}while(A8--);}if(BB){AB.purgeElement(BB);A5.removeChild(BB);}if(A3){AB.purgeElement(A3);A5.removeChild(A3);}if(A6){AB.purgeElement(A6);A6.innerHTML=v;}this.activeItem=null;this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];this.cfg.setProperty(U,null);},destroy:function(){this.clearContent();this._aItemGroups=null;this._aListElements=null;this._aGroupTitleElements=null;s.superclass.destroy.call(this);},setInitialFocus:function(){var A3=this._getFirstEnabledItem();if(A3){A3.focus();}},setInitialSelection:function(){var A3=this._getFirstEnabledItem();if(A3){A3.cfg.setProperty(z,true);}},clearActiveItem:function(A5){if(this.cfg.getProperty(At)>0){this._cancelShowDelay();}var A3=this.activeItem,A6,A4;if(A3){A6=A3.cfg;if(A5){A3.blur();this.getRoot()._hasFocus=true;}A6.setProperty(z,false);A4=A6.getProperty(O);if(A4){A4.hide();}this.activeItem=null;}},focus:function(){if(!this.hasFocus()){this.setInitialFocus();}},blur:function(){var A3;if(this.hasFocus()){A3=A1.getFocusedMenuItem();if(A3){A3.blur();}}},hasFocus:function(){return(A1.getFocusedMenu()==this.getRoot());},subscribe:function(){function A6(BB,BA,BD){var BE=BA[0],BC=BE.cfg.getProperty(O);if(BC){BC.subscribe.apply(BC,BD);}}function A9(BB,BA,BD){var BC=this.cfg.getProperty(O);if(BC){BC.subscribe.apply(BC,BD);}}s.superclass.subscribe.apply(this,arguments);s.superclass.subscribe.call(this,AS,A6,arguments);var A3=this.getItems(),A8,A7,A4,A5;if(A3){A8=A3.length;if(A8>0){A5=A8-1;do{A7=A3[A5];A4=A7.cfg.getProperty(O);if(A4){A4.subscribe.apply(A4,arguments);}else{A7.cfg.subscribeToConfigEvent(O,A9,arguments);}}while(A5--);}}},initDefaultConfig:function(){s.superclass.initDefaultConfig.call(this);var A3=this.cfg;A3.addProperty(AZ.key,{handler:this.configVisible,value:AZ.value,validator:AZ.validator});A3.addProperty(AQ.key,{handler:this.configConstrainToViewport,value:AQ.value,validator:AQ.validator,supercedes:AQ.supercedes});A3.addProperty(AJ.key,{value:AJ.value,validator:AJ.validator,supercedes:AJ.supercedes});A3.addProperty(S.key,{handler:this.configPosition,value:S.value,validator:S.validator,supercedes:S.supercedes});A3.addProperty(A.key,{value:A.value,suppressEvent:A.suppressEvent});A3.addProperty(u.key,{value:u.value,validator:u.validator,suppressEvent:u.suppressEvent});A3.addProperty(Z.key,{value:Z.value,validator:Z.validator,suppressEvent:Z.suppressEvent});A3.addProperty(r.key,{handler:this.configHideDelay,value:r.value,validator:r.validator,suppressEvent:r.suppressEvent});A3.addProperty(w.key,{value:w.value,validator:w.validator,suppressEvent:w.suppressEvent});A3.addProperty(p.key,{value:p.value,validator:p.validator,suppressEvent:p.suppressEvent});A3.addProperty(AO.key,{handler:this.configContainer,value:document.body,suppressEvent:AO.suppressEvent});
A3.addProperty(Ad.key,{value:Ad.value,validator:Ad.validator,supercedes:Ad.supercedes,suppressEvent:Ad.suppressEvent});A3.addProperty(N.key,{value:N.value,validator:N.validator,supercedes:N.supercedes,suppressEvent:N.suppressEvent});A3.addProperty(X.key,{handler:this.configMaxHeight,value:X.value,validator:X.validator,suppressEvent:X.suppressEvent,supercedes:X.supercedes});A3.addProperty(W.key,{handler:this.configClassName,value:W.value,validator:W.validator,supercedes:W.supercedes});A3.addProperty(b.key,{handler:this.configDisabled,value:b.value,validator:b.validator,suppressEvent:b.suppressEvent});A3.addProperty(I.key,{handler:this.configShadow,value:I.value,validator:I.validator});A3.addProperty(Aj.key,{value:Aj.value,validator:Aj.validator});}});})();(function(){YAHOO.widget.MenuItem=function(AS,AR){if(AS){if(AR){this.parent=AR.parent;this.value=AR.value;this.id=AR.id;}this.init(AS,AR);}};var x=YAHOO.util.Dom,j=YAHOO.widget.Module,AB=YAHOO.widget.Menu,c=YAHOO.widget.MenuItem,AK=YAHOO.util.CustomEvent,k=YAHOO.env.ua,AQ=YAHOO.lang,AL="text",O="#",Q="-",L="helptext",n="url",AH="target",A="emphasis",N="strongemphasis",b="checked",w="submenu",H="disabled",B="selected",P="hassubmenu",U="checked-disabled",AI="hassubmenu-disabled",AD="hassubmenu-selected",T="checked-selected",q="onclick",J="classname",AJ="",i="OPTION",v="OPTGROUP",K="LI",AE="href",r="SELECT",X="DIV",AN='<em class="helptext">',a="<em>",I="</em>",W="<strong>",y="</strong>",Y="preventcontextoverlap",h="obj",AG="scope",t="none",V="visible",E=" ",m="MenuItem",AA="click",D="show",M="hide",S="li",AF='<a href="#"></a>',p=[["mouseOverEvent","mouseover"],["mouseOutEvent","mouseout"],["mouseDownEvent","mousedown"],["mouseUpEvent","mouseup"],["clickEvent",AA],["keyPressEvent","keypress"],["keyDownEvent","keydown"],["keyUpEvent","keyup"],["focusEvent","focus"],["blurEvent","blur"],["destroyEvent","destroy"]],o={key:AL,value:AJ,validator:AQ.isString,suppressEvent:true},s={key:L,supercedes:[AL],suppressEvent:true},G={key:n,value:O,suppressEvent:true},AO={key:AH,suppressEvent:true},AP={key:A,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL]},d={key:N,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL]},l={key:b,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[H,B]},F={key:w,suppressEvent:true,supercedes:[H,B]},AM={key:H,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL,B]},f={key:B,value:false,validator:AQ.isBoolean,suppressEvent:true},u={key:q,suppressEvent:true},AC={key:J,value:null,validator:AQ.isString,suppressEvent:true},z={key:"keylistener",value:null,suppressEvent:true},C=null,e={};var Z=function(AU,AT){var AR=e[AU];if(!AR){e[AU]={};AR=e[AU];}var AS=AR[AT];if(!AS){AS=AU+Q+AT;AR[AT]=AS;}return AS;};var g=function(AR){x.addClass(this.element,Z(this.CSS_CLASS_NAME,AR));x.addClass(this._oAnchor,Z(this.CSS_LABEL_CLASS_NAME,AR));};var R=function(AR){x.removeClass(this.element,Z(this.CSS_CLASS_NAME,AR));x.removeClass(this._oAnchor,Z(this.CSS_LABEL_CLASS_NAME,AR));};c.prototype={CSS_CLASS_NAME:"yuimenuitem",CSS_LABEL_CLASS_NAME:"yuimenuitemlabel",SUBMENU_TYPE:null,_oAnchor:null,_oHelpTextEM:null,_oSubmenu:null,_oOnclickAttributeValue:null,_sClassName:null,constructor:c,index:null,groupIndex:null,parent:null,element:null,srcElement:null,value:null,browser:j.prototype.browser,id:null,init:function(AR,Ab){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=AB;}this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();var AX=this.cfg,AY=O,AT,Aa,AZ,AS,AV,AU,AW;if(AQ.isString(AR)){this._createRootNodeStructure();AX.queueProperty(AL,AR);}else{if(AR&&AR.tagName){switch(AR.tagName.toUpperCase()){case i:this._createRootNodeStructure();AX.queueProperty(AL,AR.text);AX.queueProperty(H,AR.disabled);this.value=AR.value;this.srcElement=AR;break;case v:this._createRootNodeStructure();AX.queueProperty(AL,AR.label);AX.queueProperty(H,AR.disabled);this.srcElement=AR;this._initSubTree();break;case K:AZ=x.getFirstChild(AR);if(AZ){AY=AZ.getAttribute(AE,2);AS=AZ.getAttribute(AH);AV=AZ.innerHTML;}this.srcElement=AR;this.element=AR;this._oAnchor=AZ;AX.setProperty(AL,AV,true);AX.setProperty(n,AY,true);AX.setProperty(AH,AS,true);this._initSubTree();break;}}}if(this.element){AU=(this.srcElement||this.element).id;if(!AU){AU=this.id||x.generateId();this.element.id=AU;}this.id=AU;x.addClass(this.element,this.CSS_CLASS_NAME);x.addClass(this._oAnchor,this.CSS_LABEL_CLASS_NAME);AW=p.length-1;do{Aa=p[AW];AT=this.createEvent(Aa[1]);AT.signature=AK.LIST;this[Aa[0]]=AT;}while(AW--);if(Ab){AX.applyConfig(Ab);}AX.fireQueue();}},_createRootNodeStructure:function(){var AR,AS;if(!C){C=document.createElement(S);C.innerHTML=AF;}AR=C.cloneNode(true);AR.className=this.CSS_CLASS_NAME;AS=AR.firstChild;AS.className=this.CSS_LABEL_CLASS_NAME;this.element=AR;this._oAnchor=AS;},_initSubTree:function(){var AX=this.srcElement,AT=this.cfg,AV,AU,AS,AR,AW;if(AX.childNodes.length>0){if(this.parent.lazyLoad&&this.parent.srcElement&&this.parent.srcElement.tagName.toUpperCase()==r){AT.setProperty(w,{id:x.generateId(),itemdata:AX.childNodes});}else{AV=AX.firstChild;AU=[];do{if(AV&&AV.tagName){switch(AV.tagName.toUpperCase()){case X:AT.setProperty(w,AV);break;case i:AU[AU.length]=AV;break;}}}while((AV=AV.nextSibling));AS=AU.length;if(AS>0){AR=new this.SUBMENU_TYPE(x.generateId());AT.setProperty(w,AR);for(AW=0;AW<AS;AW++){AR.addItem((new AR.ITEM_TYPE(AU[AW])));}}}}},configText:function(Aa,AT,AV){var AS=AT[0],AU=this.cfg,AY=this._oAnchor,AR=AU.getProperty(L),AZ=AJ,AW=AJ,AX=AJ;if(AS){if(AR){AZ=AN+AR+I;}if(AU.getProperty(A)){AW=a;AX=I;}if(AU.getProperty(N)){AW=W;AX=y;}AY.innerHTML=(AW+AS+AX+AZ);}},configHelpText:function(AT,AS,AR){this.cfg.refireEvent(AL);},configURL:function(AT,AS,AR){var AV=AS[0];if(!AV){AV=O;}var AU=this._oAnchor;if(k.opera){AU.removeAttribute(AE);}AU.setAttribute(AE,AV);},configTarget:function(AU,AT,AS){var AR=AT[0],AV=this._oAnchor;if(AR&&AR.length>0){AV.setAttribute(AH,AR);}else{AV.removeAttribute(AH);}},configEmphasis:function(AT,AS,AR){var AV=AS[0],AU=this.cfg;
if(AV&&AU.getProperty(N)){AU.setProperty(N,false);}AU.refireEvent(AL);},configStrongEmphasis:function(AU,AT,AS){var AR=AT[0],AV=this.cfg;if(AR&&AV.getProperty(A)){AV.setProperty(A,false);}AV.refireEvent(AL);},configChecked:function(AT,AS,AR){var AV=AS[0],AU=this.cfg;if(AV){g.call(this,b);}else{R.call(this,b);}AU.refireEvent(AL);if(AU.getProperty(H)){AU.refireEvent(H);}if(AU.getProperty(B)){AU.refireEvent(B);}},configDisabled:function(AT,AS,AR){var AV=AS[0],AW=this.cfg,AU=AW.getProperty(w),AX=AW.getProperty(b);if(AV){if(AW.getProperty(B)){AW.setProperty(B,false);}g.call(this,H);if(AU){g.call(this,AI);}if(AX){g.call(this,U);}}else{R.call(this,H);if(AU){R.call(this,AI);}if(AX){R.call(this,U);}}},configSelected:function(AT,AS,AR){var AX=this.cfg,AW=this._oAnchor,AV=AS[0],AY=AX.getProperty(b),AU=AX.getProperty(w);if(k.opera){AW.blur();}if(AV&&!AX.getProperty(H)){g.call(this,B);if(AU){g.call(this,AD);}if(AY){g.call(this,T);}}else{R.call(this,B);if(AU){R.call(this,AD);}if(AY){R.call(this,T);}}if(this.hasFocus()&&k.opera){AW.focus();}},_onSubmenuBeforeHide:function(AU,AT){var AV=this.parent,AR;function AS(){AV._oAnchor.blur();AR.beforeHideEvent.unsubscribe(AS);}if(AV.hasFocus()){AR=AV.parent;AR.beforeHideEvent.subscribe(AS);}},configSubmenu:function(AY,AT,AW){var AV=AT[0],AU=this.cfg,AS=this.parent&&this.parent.lazyLoad,AX,AZ,AR;if(AV){if(AV instanceof AB){AX=AV;AX.parent=this;AX.lazyLoad=AS;}else{if(AQ.isObject(AV)&&AV.id&&!AV.nodeType){AZ=AV.id;AR=AV;AR.lazyload=AS;AR.parent=this;AX=new this.SUBMENU_TYPE(AZ,AR);AU.setProperty(w,AX,true);}else{AX=new this.SUBMENU_TYPE(AV,{lazyload:AS,parent:this});AU.setProperty(w,AX,true);}}if(AX){AX.cfg.setProperty(Y,true);g.call(this,P);if(AU.getProperty(n)===O){AU.setProperty(n,(O+AX.id));}this._oSubmenu=AX;if(k.opera){AX.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);}}}else{R.call(this,P);if(this._oSubmenu){this._oSubmenu.destroy();}}if(AU.getProperty(H)){AU.refireEvent(H);}if(AU.getProperty(B)){AU.refireEvent(B);}},configOnClick:function(AT,AS,AR){var AU=AS[0];if(this._oOnclickAttributeValue&&(this._oOnclickAttributeValue!=AU)){this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn,this._oOnclickAttributeValue.obj);this._oOnclickAttributeValue=null;}if(!this._oOnclickAttributeValue&&AQ.isObject(AU)&&AQ.isFunction(AU.fn)){this.clickEvent.subscribe(AU.fn,((h in AU)?AU.obj:this),((AG in AU)?AU.scope:null));this._oOnclickAttributeValue=AU;}},configClassName:function(AU,AT,AS){var AR=AT[0];if(this._sClassName){x.removeClass(this.element,this._sClassName);}x.addClass(this.element,AR);this._sClassName=AR;},_dispatchClickEvent:function(){var AT=this,AS,AR;if(!AT.cfg.getProperty(H)){AS=x.getFirstChild(AT.element);if(k.ie){AS.fireEvent(q);}else{if((k.gecko&&k.gecko>=1.9)||k.opera||k.webkit){AR=document.createEvent("HTMLEvents");AR.initEvent(AA,true,true);}else{AR=document.createEvent("MouseEvents");AR.initMouseEvent(AA,true,true,window,0,0,0,0,0,false,false,false,false,0,null);}AS.dispatchEvent(AR);}}},_createKeyListener:function(AU,AT,AW){var AV=this,AS=AV.parent;var AR=new YAHOO.util.KeyListener(AS.element.ownerDocument,AW,{fn:AV._dispatchClickEvent,scope:AV,correctScope:true});if(AS.cfg.getProperty(V)){AR.enable();}AS.subscribe(D,AR.enable,null,AR);AS.subscribe(M,AR.disable,null,AR);AV._keyListener=AR;AS.unsubscribe(D,AV._createKeyListener,AW);},configKeyListener:function(AT,AS){var AV=AS[0],AU=this,AR=AU.parent;if(AU._keyData){AR.unsubscribe(D,AU._createKeyListener,AU._keyData);AU._keyData=null;}if(AU._keyListener){AR.unsubscribe(D,AU._keyListener.enable);AR.unsubscribe(M,AU._keyListener.disable);AU._keyListener.disable();AU._keyListener=null;}if(AV){AU._keyData=AV;AR.subscribe(D,AU._createKeyListener,AV,AU);}},initDefaultConfig:function(){var AR=this.cfg;AR.addProperty(o.key,{handler:this.configText,value:o.value,validator:o.validator,suppressEvent:o.suppressEvent});AR.addProperty(s.key,{handler:this.configHelpText,supercedes:s.supercedes,suppressEvent:s.suppressEvent});AR.addProperty(G.key,{handler:this.configURL,value:G.value,suppressEvent:G.suppressEvent});AR.addProperty(AO.key,{handler:this.configTarget,suppressEvent:AO.suppressEvent});AR.addProperty(AP.key,{handler:this.configEmphasis,value:AP.value,validator:AP.validator,suppressEvent:AP.suppressEvent,supercedes:AP.supercedes});AR.addProperty(d.key,{handler:this.configStrongEmphasis,value:d.value,validator:d.validator,suppressEvent:d.suppressEvent,supercedes:d.supercedes});AR.addProperty(l.key,{handler:this.configChecked,value:l.value,validator:l.validator,suppressEvent:l.suppressEvent,supercedes:l.supercedes});AR.addProperty(AM.key,{handler:this.configDisabled,value:AM.value,validator:AM.validator,suppressEvent:AM.suppressEvent});AR.addProperty(f.key,{handler:this.configSelected,value:f.value,validator:f.validator,suppressEvent:f.suppressEvent});AR.addProperty(F.key,{handler:this.configSubmenu,supercedes:F.supercedes,suppressEvent:F.suppressEvent});AR.addProperty(u.key,{handler:this.configOnClick,suppressEvent:u.suppressEvent});AR.addProperty(AC.key,{handler:this.configClassName,value:AC.value,validator:AC.validator,suppressEvent:AC.suppressEvent});AR.addProperty(z.key,{handler:this.configKeyListener,value:z.value,suppressEvent:z.suppressEvent});},getNextEnabledSibling:function(){var AU,AX,AR,AW,AV,AS;function AT(AY,AZ){return AY[AZ]||AT(AY,(AZ+1));}if(this.parent instanceof AB){AU=this.groupIndex;AX=this.parent.getItemGroups();if(this.index<(AX[AU].length-1)){AR=AT(AX[AU],(this.index+1));}else{if(AU<(AX.length-1)){AW=AU+1;}else{AW=0;}AV=AT(AX,AW);AR=AT(AV,0);}AS=(AR.cfg.getProperty(H)||AR.element.style.display==t)?AR.getNextEnabledSibling():AR;}return AS;},getPreviousEnabledSibling:function(){var AW,AY,AS,AR,AV,AU;function AX(AZ,Aa){return AZ[Aa]||AX(AZ,(Aa-1));}function AT(AZ,Aa){return AZ[Aa]?Aa:AT(AZ,(Aa+1));}if(this.parent instanceof AB){AW=this.groupIndex;AY=this.parent.getItemGroups();if(this.index>AT(AY[AW],0)){AS=AX(AY[AW],(this.index-1));}else{if(AW>AT(AY,0)){AR=AW-1;}else{AR=AY.length-1;
}AV=AX(AY,AR);AS=AX(AV,(AV.length-1));}AU=(AS.cfg.getProperty(H)||AS.element.style.display==t)?AS.getPreviousEnabledSibling():AS;}return AU;},focus:function(){var AU=this.parent,AT=this._oAnchor,AR=AU.activeItem;function AS(){try{if(!(k.ie&&!document.hasFocus())){if(AR){AR.blurEvent.fire();}AT.focus();this.focusEvent.fire();}}catch(AV){}}if(!this.cfg.getProperty(H)&&AU&&AU.cfg.getProperty(V)&&this.element.style.display!=t){AQ.later(0,this,AS);}},blur:function(){var AR=this.parent;if(!this.cfg.getProperty(H)&&AR&&AR.cfg.getProperty(V)){AQ.later(0,this,function(){try{this._oAnchor.blur();this.blurEvent.fire();}catch(AS){}},0);}},hasFocus:function(){return(YAHOO.widget.MenuManager.getFocusedMenuItem()==this);},destroy:function(){var AT=this.element,AS,AR,AV,AU;if(AT){AS=this.cfg.getProperty(w);if(AS){AS.destroy();}AR=AT.parentNode;if(AR){AR.removeChild(AT);this.destroyEvent.fire();}AU=p.length-1;do{AV=p[AU];this[AV[0]].unsubscribeAll();}while(AU--);this.cfg.configChangedEvent.unsubscribeAll();}},toString:function(){var AS=m,AR=this.id;if(AR){AS+=(E+AR);}return AS;}};AQ.augmentProto(c,YAHOO.util.EventProvider);})();(function(){var B="xy",C="mousedown",F="ContextMenu",J=" ";YAHOO.widget.ContextMenu=function(L,K){YAHOO.widget.ContextMenu.superclass.constructor.call(this,L,K);};var I=YAHOO.util.Event,E=YAHOO.env.ua,G=YAHOO.widget.ContextMenu,A={"TRIGGER_CONTEXT_MENU":"triggerContextMenu","CONTEXT_MENU":(E.opera?C:"contextmenu"),"CLICK":"click"},H={key:"trigger",suppressEvent:true};function D(L,K,M){this.cfg.setProperty(B,M);this.beforeShowEvent.unsubscribe(D,M);}YAHOO.lang.extend(G,YAHOO.widget.Menu,{_oTrigger:null,_bCancelled:false,contextEventTarget:null,triggerContextMenuEvent:null,init:function(L,K){G.superclass.init.call(this,L);this.beforeInitEvent.fire(G);if(K){this.cfg.applyConfig(K,true);}this.initEvent.fire(G);},initEvents:function(){G.superclass.initEvents.call(this);this.triggerContextMenuEvent=this.createEvent(A.TRIGGER_CONTEXT_MENU);this.triggerContextMenuEvent.signature=YAHOO.util.CustomEvent.LIST;},cancel:function(){this._bCancelled=true;},_removeEventHandlers:function(){var K=this._oTrigger;if(K){I.removeListener(K,A.CONTEXT_MENU,this._onTriggerContextMenu);if(E.opera){I.removeListener(K,A.CLICK,this._onTriggerClick);}}},_onTriggerClick:function(L,K){if(L.ctrlKey){I.stopEvent(L);}},_onTriggerContextMenu:function(M,K){var L;if(!(M.type==C&&!M.ctrlKey)){this.contextEventTarget=I.getTarget(M);this.triggerContextMenuEvent.fire(M);if(!this._bCancelled){I.stopEvent(M);YAHOO.widget.MenuManager.hideVisible();L=I.getXY(M);if(!YAHOO.util.Dom.inDocument(this.element)){this.beforeShowEvent.subscribe(D,L);}else{this.cfg.setProperty(B,L);}this.show();}this._bCancelled=false;}},toString:function(){var L=F,K=this.id;if(K){L+=(J+K);}return L;},initDefaultConfig:function(){G.superclass.initDefaultConfig.call(this);this.cfg.addProperty(H.key,{handler:this.configTrigger,suppressEvent:H.suppressEvent});},destroy:function(){this._removeEventHandlers();G.superclass.destroy.call(this);},configTrigger:function(L,K,N){var M=K[0];if(M){if(this._oTrigger){this._removeEventHandlers();}this._oTrigger=M;I.on(M,A.CONTEXT_MENU,this._onTriggerContextMenu,this,true);if(E.opera){I.on(M,A.CLICK,this._onTriggerClick,this,true);}}else{this._removeEventHandlers();}}});}());YAHOO.widget.ContextMenuItem=YAHOO.widget.MenuItem;(function(){var D=YAHOO.lang,N="static",M="dynamic,"+N,A="disabled",F="selected",B="autosubmenudisplay",G="submenu",C="visible",Q=" ",H="submenutoggleregion",P="MenuBar";YAHOO.widget.MenuBar=function(T,S){YAHOO.widget.MenuBar.superclass.constructor.call(this,T,S);};function O(T){var S=false;if(D.isString(T)){S=(M.indexOf((T.toLowerCase()))!=-1);}return S;}var R=YAHOO.util.Event,L=YAHOO.widget.MenuBar,K={key:"position",value:N,validator:O,supercedes:[C]},E={key:"submenualignment",value:["tl","bl"]},J={key:B,value:false,validator:D.isBoolean,suppressEvent:true},I={key:H,value:false,validator:D.isBoolean};D.extend(L,YAHOO.widget.Menu,{init:function(T,S){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuBarItem;}L.superclass.init.call(this,T);this.beforeInitEvent.fire(L);if(S){this.cfg.applyConfig(S,true);}this.initEvent.fire(L);},CSS_CLASS_NAME:"yuimenubar",SUBMENU_TOGGLE_REGION_WIDTH:20,_onKeyDown:function(U,T,Y){var S=T[0],Z=T[1],W,X,V;if(Z&&!Z.cfg.getProperty(A)){X=Z.cfg;switch(S.keyCode){case 37:case 39:if(Z==this.activeItem&&!X.getProperty(F)){X.setProperty(F,true);}else{V=(S.keyCode==37)?Z.getPreviousEnabledSibling():Z.getNextEnabledSibling();if(V){this.clearActiveItem();V.cfg.setProperty(F,true);W=V.cfg.getProperty(G);if(W){W.show();W.setInitialFocus();}else{V.focus();}}}R.preventDefault(S);break;case 40:if(this.activeItem!=Z){this.clearActiveItem();X.setProperty(F,true);Z.focus();}W=X.getProperty(G);if(W){if(W.cfg.getProperty(C)){W.setInitialSelection();W.setInitialFocus();}else{W.show();W.setInitialFocus();}}R.preventDefault(S);break;}}if(S.keyCode==27&&this.activeItem){W=this.activeItem.cfg.getProperty(G);if(W&&W.cfg.getProperty(C)){W.hide();this.activeItem.focus();}else{this.activeItem.cfg.setProperty(F,false);this.activeItem.blur();}R.preventDefault(S);}},_onClick:function(e,Y,b){L.superclass._onClick.call(this,e,Y,b);var d=Y[1],T=true,S,f,U,W,Z,a,c,V;var X=function(){if(a.cfg.getProperty(C)){a.hide();}else{a.show();}};if(d&&!d.cfg.getProperty(A)){f=Y[0];U=R.getTarget(f);W=this.activeItem;Z=this.cfg;if(W&&W!=d){this.clearActiveItem();}d.cfg.setProperty(F,true);a=d.cfg.getProperty(G);if(a){S=d.element;c=YAHOO.util.Dom.getX(S);V=c+(S.offsetWidth-this.SUBMENU_TOGGLE_REGION_WIDTH);if(Z.getProperty(H)){if(R.getPageX(f)>V){X();R.preventDefault(f);T=false;}}else{X();}}}return T;},configSubmenuToggle:function(U,T){var S=T[0];if(S){this.cfg.setProperty(B,false);}},toString:function(){var T=P,S=this.id;if(S){T+=(Q+S);}return T;},initDefaultConfig:function(){L.superclass.initDefaultConfig.call(this);var S=this.cfg;S.addProperty(K.key,{handler:this.configPosition,value:K.value,validator:K.validator,supercedes:K.supercedes});
S.addProperty(E.key,{value:E.value,suppressEvent:E.suppressEvent});S.addProperty(J.key,{value:J.value,validator:J.validator,suppressEvent:J.suppressEvent});S.addProperty(I.key,{value:I.value,validator:I.validator,handler:this.configSubmenuToggle});}});}());YAHOO.widget.MenuBarItem=function(B,A){YAHOO.widget.MenuBarItem.superclass.constructor.call(this,B,A);};YAHOO.lang.extend(YAHOO.widget.MenuBarItem,YAHOO.widget.MenuItem,{init:function(B,A){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;}YAHOO.widget.MenuBarItem.superclass.init.call(this,B);var C=this.cfg;if(A){C.applyConfig(A,true);}C.fireQueue();},CSS_CLASS_NAME:"yuimenubaritem",CSS_LABEL_CLASS_NAME:"yuimenubaritemlabel",toString:function(){var A="MenuBarItem";if(this.cfg&&this.cfg.getProperty("text")){A+=(": "+this.cfg.getProperty("text"));}return A;}});YAHOO.register("menu",YAHOO.widget.Menu,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/datasource/datasource-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
(function(){var lang=YAHOO.lang,util=YAHOO.util,Ev=util.Event;util.DataSourceBase=function(oLiveData,oConfigs){if(oLiveData===null||oLiveData===undefined){return;}this.liveData=oLiveData;this._oQueue={interval:null,conn:null,requests:[]};this.responseSchema={};if(oConfigs&&(oConfigs.constructor==Object)){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}}var maxCacheEntries=this.maxCacheEntries;if(!lang.isNumber(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;}this._aIntervals=[];this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");var DS=util.DataSourceBase;this._sName="DataSource instance"+DS._nIndex;DS._nIndex++;};var DS=util.DataSourceBase;lang.augmentObject(DS,{TYPE_UNKNOWN:-1,TYPE_JSARRAY:0,TYPE_JSFUNCTION:1,TYPE_XHR:2,TYPE_JSON:3,TYPE_XML:4,TYPE_TEXT:5,TYPE_HTMLTABLE:6,TYPE_SCRIPTNODE:7,TYPE_LOCAL:8,ERROR_DATAINVALID:"Invalid data",ERROR_DATANULL:"Null data",_nIndex:0,_nTransactionId:0,issueCallback:function(callback,params,error,scope){if(lang.isFunction(callback)){callback.apply(scope,params);}else{if(lang.isObject(callback)){scope=callback.scope||scope||window;var callbackFunc=callback.success;if(error){callbackFunc=callback.failure;}if(callbackFunc){callbackFunc.apply(scope,params.concat([callback.argument]));}}}},parseString:function(oData){if(!lang.isValue(oData)){return null;}var string=oData+"";if(lang.isString(string)){return string;}else{return null;}},parseNumber:function(oData){if(!lang.isValue(oData)||(oData==="")){return null;}var number=oData*1;if(lang.isNumber(number)){return number;}else{return null;}},convertNumber:function(oData){return DS.parseNumber(oData);},parseDate:function(oData){var date=null;if(!(oData instanceof Date)){date=new Date(oData);}else{return oData;}if(date instanceof Date){return date;}else{return null;}},convertDate:function(oData){return DS.parseDate(oData);}});DS.Parser={string:DS.parseString,number:DS.parseNumber,date:DS.parseDate};DS.prototype={_sName:null,_aCache:null,_oQueue:null,_aIntervals:null,maxCacheEntries:0,liveData:null,dataType:DS.TYPE_UNKNOWN,responseType:DS.TYPE_UNKNOWN,responseSchema:null,toString:function(){return this._sName;},getCachedResponse:function(oRequest,oCallback,oCaller){var aCache=this._aCache;if(this.maxCacheEntries>0){if(!aCache){this._aCache=[];}else{var nCacheLength=aCache.length;if(nCacheLength>0){var oResponse=null;this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});if(i<nCacheLength-1){aCache.splice(i,1);this.addToCache(oRequest,oResponse);}oResponse.cached=true;break;}}return oResponse;}}}else{if(aCache){this._aCache=null;}}return null;},isCacheHit:function(oRequest,oCachedRequest){return(oRequest===oCachedRequest);},addToCache:function(oRequest,oResponse){var aCache=this._aCache;if(!aCache){return;}while(aCache.length>=this.maxCacheEntries){aCache.shift();}var oCacheElem={request:oRequest,response:oResponse};aCache[aCache.length]=oCacheElem;this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});},flushCache:function(){if(this._aCache){this._aCache=[];this.fireEvent("cacheFlushEvent");}},setInterval:function(nMsec,oRequest,oCallback,oCaller){if(lang.isNumber(nMsec)&&(nMsec>=0)){var oSelf=this;var nId=setInterval(function(){oSelf.makeConnection(oRequest,oCallback,oCaller);},nMsec);this._aIntervals.push(nId);return nId;}else{}},clearInterval:function(nId){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){if(tracker[i]===nId){tracker.splice(i,1);clearInterval(nId);}}},clearAllIntervals:function(){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){clearInterval(tracker[i]);}tracker=[];},sendRequest:function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);return null;}return this.makeConnection(oRequest,oCallback,oCaller);},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;},handleResponse:function(oRequest,oRawResponse,oCallback,oCaller,tId){this.fireEvent("responseEvent",{tId:tId,request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=(this.dataType==DS.TYPE_XHR)?true:false;var oParsedResponse=null;var oFullResponse=oRawResponse;if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oRawResponse&&oRawResponse.getResponseHeader)?oRawResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}else{if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}}switch(this.responseType){case DS.TYPE_JSARRAY:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);
if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var arrayEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,arrayEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e1){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseArrayData(oRequest,oFullResponse);break;case DS.TYPE_JSON:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var objEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,objEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseJSONData(oRequest,oFullResponse);break;case DS.TYPE_HTMLTABLE:if(xhr&&oRawResponse.responseText){var el=document.createElement("div");el.innerHTML=oRawResponse.responseText;oFullResponse=el.getElementsByTagName("table")[0];}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseHTMLTableData(oRequest,oFullResponse);break;case DS.TYPE_XML:if(xhr&&oRawResponse.responseXML){oFullResponse=oRawResponse.responseXML;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseXMLData(oRequest,oFullResponse);break;case DS.TYPE_TEXT:if(xhr&&lang.isString(oRawResponse.responseText)){oFullResponse=oRawResponse.responseText;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseTextData(oRequest,oFullResponse);break;default:oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseData(oRequest,oFullResponse);break;}oParsedResponse=oParsedResponse||{};if(!oParsedResponse.results){oParsedResponse.results=[];}if(!oParsedResponse.meta){oParsedResponse.meta={};}if(oParsedResponse&&!oParsedResponse.error){oParsedResponse=this.doBeforeCallback(oRequest,oFullResponse,oParsedResponse,oCallback);this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse);}else{oParsedResponse.error=true;this.fireEvent("dataErrorEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});}oParsedResponse.tId=tId;DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller);},doBeforeParseData:function(oRequest,oFullResponse,oCallback){return oFullResponse;},doBeforeCallback:function(oRequest,oFullResponse,oParsedResponse,oCallback){return oParsedResponse;},parseData:function(oRequest,oFullResponse){if(lang.isValue(oFullResponse)){var oParsedResponse={results:oFullResponse,meta:{}};return oParsedResponse;}return null;},parseArrayData:function(oRequest,oFullResponse){if(lang.isArray(oFullResponse)){var results=[],i,j,rec,field,data;if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(i=fields.length-1;i>=0;--i){if(typeof fields[i]!=="object"){fields[i]={key:fields[i]};}}var parsers={},p;for(i=fields.length-1;i>=0;--i){p=(typeof fields[i].parser==="function"?fields[i].parser:DS.Parser[fields[i].parser+""])||fields[i].converter;if(p){parsers[fields[i].key]=p;}}var arrType=lang.isArray(oFullResponse[0]);for(i=oFullResponse.length-1;i>-1;i--){var oResult={};rec=oFullResponse[i];if(typeof rec==="object"){for(j=fields.length-1;j>-1;j--){field=fields[j];data=arrType?rec[j]:rec[field.key];if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data;}}else{if(lang.isString(rec)){for(j=fields.length-1;j>-1;j--){field=fields[j];data=rec;if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data;}}}results[i]=oResult;}}else{results=oFullResponse;}var oParsedResponse={results:results};return oParsedResponse;}return null;},parseTextData:function(oRequest,oFullResponse){if(lang.isString(oFullResponse)){if(lang.isString(this.responseSchema.recordDelim)&&lang.isString(this.responseSchema.fieldDelim)){var oParsedResponse={results:[]};var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;if(oFullResponse.length>0){var newLength=oFullResponse.length-recDelim.length;if(oFullResponse.substr(newLength)==recDelim){oFullResponse=oFullResponse.substr(0,newLength);}if(oFullResponse.length>0){var recordsarray=oFullResponse.split(recDelim);for(var i=0,len=recordsarray.length,recIdx=0;i<len;++i){var bError=false,sRecord=recordsarray[i];if(lang.isString(sRecord)&&(sRecord.length>0)){var fielddataarray=recordsarray[i].split(fieldDelim);var oResult={};if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(var j=fields.length-1;j>-1;j--){try{var data=fielddataarray[j];if(lang.isString(data)){if(data.charAt(0)=='"'){data=data.substr(1);}if(data.charAt(data.length-1)=='"'){data=data.substr(0,data.length-1);}var field=fields[j];
var key=(lang.isValue(field.key))?field.key:field;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}else{bError=true;}}catch(e){bError=true;}}}else{oResult=fielddataarray;}if(!bError){oParsedResponse.results[recIdx++]=oResult;}}}}}return oParsedResponse;}}return null;},parseXMLResult:function(result){var oResult={},schema=this.responseSchema;try{for(var m=schema.fields.length-1;m>=0;m--){var field=schema.fields[m];var key=(lang.isValue(field.key))?field.key:field;var data=null;var xmlAttr=result.attributes.getNamedItem(key);if(xmlAttr){data=xmlAttr.value;}else{var xmlNode=result.getElementsByTagName(key);if(xmlNode&&xmlNode.item(0)){var item=xmlNode.item(0);data=(item)?((item.text)?item.text:(item.textContent)?item.textContent:null):null;if(!data){var datapieces=[];for(var j=0,len=item.childNodes.length;j<len;j++){if(item.childNodes[j].nodeValue){datapieces[datapieces.length]=item.childNodes[j].nodeValue;}}if(datapieces.length>0){data=datapieces.join("");}}}}if(data===null){data="";}if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}}catch(e){}return oResult;},parseXMLData:function(oRequest,oFullResponse){var bError=false,schema=this.responseSchema,oParsedResponse={meta:{}},xmlList=null,metaNode=schema.metaNode,metaLocators=schema.metaFields||{},i,k,loc,v;try{xmlList=(schema.resultNode)?oFullResponse.getElementsByTagName(schema.resultNode):null;metaNode=metaNode?oFullResponse.getElementsByTagName(metaNode)[0]:oFullResponse;if(metaNode){for(k in metaLocators){if(lang.hasOwnProperty(metaLocators,k)){loc=metaLocators[k];v=metaNode.getElementsByTagName(loc)[0];if(v){v=v.firstChild.nodeValue;}else{v=metaNode.attributes.getNamedItem(loc);if(v){v=v.value;}}if(lang.isValue(v)){oParsedResponse.meta[k]=v;}}}}}catch(e){}if(!xmlList||!lang.isArray(schema.fields)){bError=true;}else{oParsedResponse.results=[];for(i=xmlList.length-1;i>=0;--i){var oResult=this.parseXMLResult(xmlList.item(i));oParsedResponse.results[i]=oResult;}}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;},parseJSONData:function(oRequest,oFullResponse){var oParsedResponse={results:[],meta:{}};if(lang.isObject(oFullResponse)&&this.responseSchema.resultsList){var schema=this.responseSchema,fields=schema.fields,resultsList=oFullResponse,results=[],metaFields=schema.metaFields||{},fieldParsers=[],fieldPaths=[],simpleFields=[],bError=false,i,len,j,v,key,parser,path;var buildPath=function(needle){var path=null,keys=[],i=0;if(needle){needle=needle.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return".@"+(i++);}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return".@"+(i++);}).replace(/^\./,"");if(!/[^\w\.\$@]/.test(needle)){path=needle.split(".");for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==="@"){path[i]=keys[parseInt(path[i].substr(1),10)];}}}else{}}return path;};var walkPath=function(path,origin){var v=origin,i=0,len=path.length;for(;i<len&&v;++i){v=v[path[i]];}return v;};path=buildPath(schema.resultsList);if(path){resultsList=walkPath(path,oFullResponse);if(resultsList===undefined){bError=true;}}else{bError=true;}if(!resultsList){resultsList=[];}if(!lang.isArray(resultsList)){resultsList=[resultsList];}if(!bError){if(schema.fields){var field;for(i=0,len=fields.length;i<len;i++){field=fields[i];key=field.key||field;parser=((typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""])||field.converter;path=buildPath(key);if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser};}if(path){if(path.length>1){fieldPaths[fieldPaths.length]={key:key,path:path};}else{simpleFields[simpleFields.length]={key:key,path:path[0]};}}else{}}for(i=resultsList.length-1;i>=0;--i){var r=resultsList[i],rec={};if(r){for(j=simpleFields.length-1;j>=0;--j){rec[simpleFields[j].key]=(r[simpleFields[j].path]!==undefined)?r[simpleFields[j].path]:r[j];}for(j=fieldPaths.length-1;j>=0;--j){rec[fieldPaths[j].key]=walkPath(fieldPaths[j].path,r);}for(j=fieldParsers.length-1;j>=0;--j){var p=fieldParsers[j].key;rec[p]=fieldParsers[j].parser(rec[p]);if(rec[p]===undefined){rec[p]=null;}}}results[i]=rec;}}else{results=resultsList;}for(key in metaFields){if(lang.hasOwnProperty(metaFields,key)){path=buildPath(metaFields[key]);if(path){v=walkPath(path,oFullResponse);oParsedResponse.meta[key]=v;}}}}else{oParsedResponse.error=true;}oParsedResponse.results=results;}else{oParsedResponse.error=true;}return oParsedResponse;},parseHTMLTableData:function(oRequest,oFullResponse){var bError=false;var elTable=oFullResponse;var fields=this.responseSchema.fields;var oParsedResponse={results:[]};if(lang.isArray(fields)){for(var i=0;i<elTable.tBodies.length;i++){var elTbody=elTable.tBodies[i];for(var j=elTbody.rows.length-1;j>-1;j--){var elRow=elTbody.rows[j];var oResult={};for(var k=fields.length-1;k>-1;k--){var field=fields[k];var key=(lang.isValue(field.key))?field.key:field;var data=elRow.cells[k].innerHTML;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}oParsedResponse.results[j]=oResult;}}}else{bError=true;}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;}};lang.augmentProto(DS,util.EventProvider);util.LocalDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_LOCAL;if(oLiveData){if(YAHOO.lang.isArray(oLiveData)){this.responseType=DS.TYPE_JSARRAY;}else{if(oLiveData.nodeType&&oLiveData.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oLiveData.nodeName&&(oLiveData.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;
oLiveData=oLiveData.cloneNode(true);}else{if(YAHOO.lang.isString(oLiveData)){this.responseType=DS.TYPE_TEXT;}else{if(YAHOO.lang.isObject(oLiveData)){this.responseType=DS.TYPE_JSON;}}}}}}else{oLiveData=[];this.responseType=DS.TYPE_JSARRAY;}util.LocalDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.LocalDataSource,DS);lang.augmentObject(util.LocalDataSource,DS);util.FunctionDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_JSFUNCTION;oLiveData=oLiveData||function(){};util.FunctionDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.FunctionDataSource,DS,{scope:null,makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=(this.scope)?this.liveData.call(this.scope,oRequest,this):this.liveData(oRequest);if(this.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;}});lang.augmentObject(util.FunctionDataSource,DS);util.ScriptNodeDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_SCRIPTNODE;oLiveData=oLiveData||"";util.ScriptNodeDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.ScriptNodeDataSource,DS,{getUtility:util.Get,asyncMode:"allowAll",scriptCallbackParam:"callback",generateRequestCallback:function(id){return"&"+this.scriptCallbackParam+"=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]";},doBeforeGetScriptNode:function(sUri){return sUri;},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});if(util.ScriptNodeDataSource._nPending===0){util.ScriptNodeDataSource.callbacks=[];util.ScriptNodeDataSource._nId=0;}var id=util.ScriptNodeDataSource._nId;util.ScriptNodeDataSource._nId++;var oSelf=this;util.ScriptNodeDataSource.callbacks[id]=function(oRawResponse){if((oSelf.asyncMode!=="ignoreStaleResponses")||(id===util.ScriptNodeDataSource.callbacks.length-1)){if(oSelf.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){oSelf.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse.nodeType&&oRawResponse.nodeType==9){oSelf.responseType=DS.TYPE_XML;}else{if(oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){oSelf.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){oSelf.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){oSelf.responseType=DS.TYPE_TEXT;}}}}}}oSelf.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);}else{}delete util.ScriptNodeDataSource.callbacks[id];};util.ScriptNodeDataSource._nPending++;var sUri=this.liveData+oRequest+this.generateRequestCallback(id);sUri=this.doBeforeGetScriptNode(sUri);this.getUtility.script(sUri,{autopurge:true,onsuccess:util.ScriptNodeDataSource._bumpPendingDown,onfail:util.ScriptNodeDataSource._bumpPendingDown});return tId;}});lang.augmentObject(util.ScriptNodeDataSource,DS);lang.augmentObject(util.ScriptNodeDataSource,{_nId:0,_nPending:0,callbacks:[]});util.XHRDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_XHR;this.connMgr=this.connMgr||util.Connect;oLiveData=oLiveData||"";util.XHRDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.XHRDataSource,DS,{connMgr:null,connXhrMode:"allowAll",connMethodPost:false,connTimeout:0,makeConnection:function(oRequest,oCallback,oCaller){var oRawResponse=null;var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oSelf=this;var oConnMgr=this.connMgr;var oQueue=this._oQueue;var _xhrSuccess=function(oResponse){if(oResponse&&(this.connXhrMode=="ignoreStaleResponses")&&(oResponse.tId!=oQueue.conn.tId)){return null;}else{if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);return null;}else{if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oResponse.getResponseHeader)?oResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}}this.handleResponse(oRequest,oResponse,oCallback,oCaller,tId);}}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:DS.ERROR_DATAINVALID});if(lang.isString(this.liveData)&&lang.isString(oRequest)&&(this.liveData.lastIndexOf("?")!==this.liveData.length-1)&&(oRequest.indexOf("?")!==0)){}oResponse=oResponse||{};oResponse.error=true;DS.issueCallback(oCallback,[oRequest,oResponse],true,oCaller);return null;};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(lang.isNumber(this.connTimeout)){_xhrCallback.timeout=this.connTimeout;}if(this.connXhrMode=="cancelStaleRequests"){if(oQueue.conn){if(oConnMgr.abort){oConnMgr.abort(oQueue.conn);oQueue.conn=null;}else{}}}if(oConnMgr&&oConnMgr.asyncRequest){var sLiveData=this.liveData;var isPost=this.connMethodPost;var sMethod=(isPost)?"POST":"GET";var sUri=(isPost||!lang.isValue(oRequest))?sLiveData:sLiveData+oRequest;var sRequest=(isPost)?oRequest:null;if(this.connXhrMode!="queueRequests"){oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}else{if(oQueue.conn){var allRequests=oQueue.requests;
allRequests.push({request:oRequest,callback:_xhrCallback});if(!oQueue.interval){oQueue.interval=setInterval(function(){if(oConnMgr.isCallInProgress(oQueue.conn)){return;}else{if(allRequests.length>0){sUri=(isPost||!lang.isValue(allRequests[0].request))?sLiveData:sLiveData+allRequests[0].request;sRequest=(isPost)?allRequests[0].request:null;oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,allRequests[0].callback,sRequest);allRequests.shift();}else{clearInterval(oQueue.interval);oQueue.interval=null;}}},50);}}else{oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}}}else{DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);}return tId;}});lang.augmentObject(util.XHRDataSource,DS);util.DataSource=function(oLiveData,oConfigs){oConfigs=oConfigs||{};var dataType=oConfigs.dataType;if(dataType){if(dataType==DS.TYPE_LOCAL){lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_XHR){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_SCRIPTNODE){lang.augmentObject(util.DataSource,util.ScriptNodeDataSource);return new util.ScriptNodeDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_JSFUNCTION){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs);}}}}}if(YAHOO.lang.isString(oLiveData)){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs);}else{if(YAHOO.lang.isFunction(oLiveData)){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs);}else{lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs);}}};lang.augmentObject(util.DataSource,DS);})();YAHOO.util.Number={format:function(C,G){var B=YAHOO.lang;if(!B.isValue(C)||(C==="")){return"";}G=G||{};if(!B.isNumber(C)){C*=1;}if(B.isNumber(C)){var E=(C<0);var K=C+"";var H=(G.decimalSeparator)?G.decimalSeparator:".";var I;if(B.isNumber(G.decimalPlaces)){var J=G.decimalPlaces;var D=Math.pow(10,J);K=Math.round(C*D)/D+"";I=K.lastIndexOf(".");if(J>0){if(I<0){K+=H;I=K.length-1;}else{if(H!=="."){K=K.replace(".",H);}}while((K.length-1-I)<J){K+="0";}}}if(G.thousandsSeparator){var M=G.thousandsSeparator;I=K.lastIndexOf(H);I=(I>-1)?I:K.length;var L=K.substring(I);var A=-1;for(var F=I;F>0;F--){A++;if((A%3===0)&&(F!==I)&&(!E||(F>1))){L=M+L;}L=K.charAt(F-1)+L;}K=L;}K=(G.prefix)?G.prefix+K:K;K=(G.suffix)?K+G.suffix:K;return K;}else{return C;}}};(function(){var A=function(C,E,D){if(typeof D==="undefined"){D=10;}for(;parseInt(C,10)<D&&D>1;D/=10){C=E.toString()+C;}return C.toString();};var B={formats:{a:function(D,C){return C.a[D.getDay()];},A:function(D,C){return C.A[D.getDay()];},b:function(D,C){return C.b[D.getMonth()];},B:function(D,C){return C.B[D.getMonth()];},C:function(C){return A(parseInt(C.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(C){return A(parseInt(B.formats.G(C)%100,10),0);},G:function(E){var F=E.getFullYear();var D=parseInt(B.formats.V(E),10);var C=parseInt(B.formats.W(E),10);if(C>D){F++;}else{if(C===0&&D>=52){F--;}}return F;},H:["getHours","0"],I:function(D){var C=D.getHours()%12;return A(C===0?12:C,0);},j:function(G){var F=new Date(""+G.getFullYear()+"/1/1 GMT");var D=new Date(""+G.getFullYear()+"/"+(G.getMonth()+1)+"/"+G.getDate()+" GMT");var C=D-F;var E=parseInt(C/60000/60/24,10)+1;return A(E,0,100);},k:["getHours"," "],l:function(D){var C=D.getHours()%12;return A(C===0?12:C," ");},m:function(C){return A(C.getMonth()+1,0);},M:["getMinutes","0"],p:function(D,C){return C.p[D.getHours()>=12?1:0];},P:function(D,C){return C.P[D.getHours()>=12?1:0];},s:function(D,C){return parseInt(D.getTime()/1000,10);},S:["getSeconds","0"],u:function(C){var D=C.getDay();return D===0?7:D;},U:function(F){var C=parseInt(B.formats.j(F),10);var E=6-F.getDay();var D=parseInt((C+E)/7,10);return A(D,0);},V:function(F){var E=parseInt(B.formats.W(F),10);var C=(new Date(""+F.getFullYear()+"/1/1")).getDay();var D=E+(C>4||C<=1?0:1);if(D===53&&(new Date(""+F.getFullYear()+"/12/31")).getDay()<4){D=1;}else{if(D===0){D=B.formats.V(new Date(""+(F.getFullYear()-1)+"/12/31"));}}return A(D,0);},w:"getDay",W:function(F){var C=parseInt(B.formats.j(F),10);var E=7-B.formats.u(F);var D=parseInt((C+E)/7,10);return A(D,0,10);},y:function(C){return A(C.getFullYear()%100,0);},Y:"getFullYear",z:function(E){var D=E.getTimezoneOffset();var C=A(parseInt(Math.abs(D/60),10),0);var F=A(Math.abs(D%60),0);return(D>0?"-":"+")+C+F;},Z:function(C){var D=C.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(D.length>4){D=B.formats.z(C);}return D;},"%":function(C){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(G,F,D){F=F||{};if(!(G instanceof Date)){return YAHOO.lang.isValue(G)?G:"";}var H=F.format||"%m/%d/%Y";if(H==="YYYY/MM/DD"){H="%Y/%m/%d";}else{if(H==="DD/MM/YYYY"){H="%d/%m/%Y";}else{if(H==="MM/DD/YYYY"){H="%m/%d/%Y";}}}D=D||"en";if(!(D in YAHOO.util.DateLocale)){if(D.replace(/-[a-zA-Z]+$/,"") in YAHOO.util.DateLocale){D=D.replace(/-[a-zA-Z]+$/,"");}else{D="en";}}var J=YAHOO.util.DateLocale[D];var C=function(L,K){var M=B.aggregates[K];return(M==="locale"?J[K]:M);};var E=function(L,K){var M=B.formats[K];if(typeof M==="string"){return G[M]();}else{if(typeof M==="function"){return M.call(G,G,J);}else{if(typeof M==="object"&&typeof M[0]==="string"){return A(G[M[0]](),M[1]);}else{return K;}}}};while(H.match(/%[cDFhnrRtTxX]/)){H=H.replace(/%([cDFhnrRtTxX])/g,C);}var I=H.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,E);C=E=undefined;return I;}};YAHOO.namespace("YAHOO.util");YAHOO.util.Date=B;YAHOO.util.DateLocale={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};
YAHOO.util.DateLocale["en"]=YAHOO.lang.merge(YAHOO.util.DateLocale,{});YAHOO.util.DateLocale["en-US"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});YAHOO.util.DateLocale["en-GB"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{r:"%l:%M:%S %P %Z"});YAHOO.util.DateLocale["en-AU"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"]);})();YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/yui/autocomplete/autocomplete-min.js */
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
YAHOO.widget.DS_JSArray=YAHOO.util.LocalDataSource;YAHOO.widget.DS_JSFunction=YAHOO.util.FunctionDataSource;YAHOO.widget.DS_XHR=function(B,A,D){var C=new YAHOO.util.XHRDataSource(B,D);C._aDeprecatedSchema=A;return C;};YAHOO.widget.DS_ScriptNode=function(B,A,D){var C=new YAHOO.util.ScriptNodeDataSource(B,D);C._aDeprecatedSchema=A;return C;};YAHOO.widget.DS_XHR.TYPE_JSON=YAHOO.util.DataSourceBase.TYPE_JSON;YAHOO.widget.DS_XHR.TYPE_XML=YAHOO.util.DataSourceBase.TYPE_XML;YAHOO.widget.DS_XHR.TYPE_FLAT=YAHOO.util.DataSourceBase.TYPE_TEXT;YAHOO.widget.AutoComplete=function(G,B,J,C){if(G&&B&&J){if(J instanceof YAHOO.util.DataSourceBase){this.dataSource=J;}else{return;}this.key=0;var D=J.responseSchema;if(J._aDeprecatedSchema){var K=J._aDeprecatedSchema;if(YAHOO.lang.isArray(K)){if((J.responseType===YAHOO.util.DataSourceBase.TYPE_JSON)||(J.responseType===YAHOO.util.DataSourceBase.TYPE_UNKNOWN)){D.resultsList=K[0];this.key=K[1];D.fields=(K.length<3)?null:K.slice(1);}else{if(J.responseType===YAHOO.util.DataSourceBase.TYPE_XML){D.resultNode=K[0];this.key=K[1];D.fields=K.slice(1);}else{if(J.responseType===YAHOO.util.DataSourceBase.TYPE_TEXT){D.recordDelim=K[0];D.fieldDelim=K[1];}}}J.responseSchema=D;}}if(YAHOO.util.Dom.inDocument(G)){if(YAHOO.lang.isString(G)){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+G;this._elTextbox=document.getElementById(G);}else{this._sName=(G.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+G.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._elTextbox=G;}YAHOO.util.Dom.addClass(this._elTextbox,"yui-ac-input");}else{return;}if(YAHOO.util.Dom.inDocument(B)){if(YAHOO.lang.isString(B)){this._elContainer=document.getElementById(B);}else{this._elContainer=B;}if(this._elContainer.style.display=="none"){}var E=this._elContainer.parentNode;var A=E.tagName.toLowerCase();if(A=="div"){YAHOO.util.Dom.addClass(E,"yui-ac");}else{}}else{return;}if(this.dataSource.dataType===YAHOO.util.DataSourceBase.TYPE_LOCAL){this.applyLocalFilter=true;}if(C&&(C.constructor==Object)){for(var I in C){if(I){this[I]=C[I];}}}this._initContainerEl();this._initProps();this._initListEl();this._initContainerHelperEls();var H=this;var F=this._elTextbox;YAHOO.util.Event.addListener(F,"keyup",H._onTextboxKeyUp,H);YAHOO.util.Event.addListener(F,"keydown",H._onTextboxKeyDown,H);YAHOO.util.Event.addListener(F,"focus",H._onTextboxFocus,H);YAHOO.util.Event.addListener(F,"blur",H._onTextboxBlur,H);YAHOO.util.Event.addListener(B,"mouseover",H._onContainerMouseover,H);YAHOO.util.Event.addListener(B,"mouseout",H._onContainerMouseout,H);YAHOO.util.Event.addListener(B,"click",H._onContainerClick,H);YAHOO.util.Event.addListener(B,"scroll",H._onContainerScroll,H);YAHOO.util.Event.addListener(B,"resize",H._onContainerResize,H);YAHOO.util.Event.addListener(F,"keypress",H._onTextboxKeyPress,H);YAHOO.util.Event.addListener(window,"unload",H._onWindowUnload,H);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerPopulateEvent=new YAHOO.util.CustomEvent("containerPopulate",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);this.textboxChangeEvent=new YAHOO.util.CustomEvent("textboxChange",this);F.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.applyLocalFilter=null;YAHOO.widget.AutoComplete.prototype.queryMatchCase=false;YAHOO.widget.AutoComplete.prototype.queryMatchContains=false;YAHOO.widget.AutoComplete.prototype.queryMatchSubset=false;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.typeAheadDelay=0.5;YAHOO.widget.AutoComplete.prototype.queryInterval=500;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.suppressInputUpdate=false;YAHOO.widget.AutoComplete.prototype.resultTypeList=true;YAHOO.widget.AutoComplete.prototype.queryQuestionMark=true;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.getInputEl=function(){return this._elTextbox;};YAHOO.widget.AutoComplete.prototype.getContainerEl=function(){return this._elContainer;
};YAHOO.widget.AutoComplete.prototype.isFocused=function(){return(this._bFocused===null)?false:this._bFocused;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListEl=function(){return this._elList;};YAHOO.widget.AutoComplete.prototype.getListItemMatch=function(A){if(A._sResultMatch){return A._sResultMatch;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemData=function(A){if(A._oResultData){return A._oResultData;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemIndex=function(A){if(YAHOO.lang.isNumber(A._nItemIndex)){return A._nItemIndex;}else{return null;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(B){if(this._elHeader){var A=this._elHeader;if(B){A.innerHTML=B;A.style.display="block";}else{A.innerHTML="";A.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setFooter=function(B){if(this._elFooter){var A=this._elFooter;if(B){A.innerHTML=B;A.style.display="block";}else{A.innerHTML="";A.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setBody=function(A){if(this._elBody){var B=this._elBody;YAHOO.util.Event.purgeElement(B,true);if(A){B.innerHTML=A;B.style.display="block";}else{B.innerHTML="";B.style.display="none";}this._elList=null;}};YAHOO.widget.AutoComplete.prototype.generateRequest=function(B){var A=this.dataSource.dataType;if(A===YAHOO.util.DataSourceBase.TYPE_XHR){if(!this.dataSource.connMethodPost){B=(this.queryQuestionMark?"?":"")+(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}else{B=(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}else{if(A===YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE){B="&"+(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}return B;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(B){this._bFocused=null;var A=(this.delimChar)?this._elTextbox.value+B:B;this._sendQuery(A);};YAHOO.widget.AutoComplete.prototype.collapseContainer=function(){this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype.getSubsetMatches=function(E){var D,C,A;for(var B=E.length;B>=this.minQueryLength;B--){A=this.generateRequest(E.substr(0,B));this.dataRequestEvent.fire(this,D,A);C=this.dataSource.getCachedResponse(A);if(C){return this.filterResults.apply(this.dataSource,[E,C,C,{scope:this}]);}}return null;};YAHOO.widget.AutoComplete.prototype.preparseRawResponse=function(C,B,A){var D=((this.responseStripAfter!=="")&&(B.indexOf))?B.indexOf(this.responseStripAfter):-1;if(D!=-1){B=B.substring(0,D);}return B;};YAHOO.widget.AutoComplete.prototype.filterResults=function(J,L,P,K){if(K&&K.argument&&K.argument.query){J=K.argument.query;}if(J&&J!==""){P=YAHOO.widget.AutoComplete._cloneObject(P);var H=K.scope,O=this,B=P.results,M=[],D=false,I=(O.queryMatchCase||H.queryMatchCase),A=(O.queryMatchContains||H.queryMatchContains);for(var C=B.length-1;C>=0;C--){var F=B[C];var E=null;if(YAHOO.lang.isString(F)){E=F;}else{if(YAHOO.lang.isArray(F)){E=F[0];}else{if(this.responseSchema.fields){var N=this.responseSchema.fields[0].key||this.responseSchema.fields[0];E=F[N];}else{if(this.key){E=F[this.key];}}}}if(YAHOO.lang.isString(E)){var G=(I)?E.indexOf(decodeURIComponent(J)):E.toLowerCase().indexOf(decodeURIComponent(J).toLowerCase());if((!A&&(G===0))||(A&&(G>-1))){M.unshift(F);}}}P.results=M;}else{}return P;};YAHOO.widget.AutoComplete.prototype.handleResponse=function(C,A,B){if((this instanceof YAHOO.widget.AutoComplete)&&this._sName){this._populateList(C,A,B);}};YAHOO.widget.AutoComplete.prototype.doBeforeLoadData=function(C,A,B){return true;};YAHOO.widget.AutoComplete.prototype.formatResult=function(B,D,A){var C=(A)?A:"";return C;};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(D,A,C,B){return true;};YAHOO.widget.AutoComplete.prototype.destroy=function(){var B=this.toString();var A=this._elTextbox;var D=this._elContainer;this.textboxFocusEvent.unsubscribeAll();this.textboxKeyEvent.unsubscribeAll();this.dataRequestEvent.unsubscribeAll();this.dataReturnEvent.unsubscribeAll();this.dataErrorEvent.unsubscribeAll();this.containerPopulateEvent.unsubscribeAll();this.containerExpandEvent.unsubscribeAll();this.typeAheadEvent.unsubscribeAll();this.itemMouseOverEvent.unsubscribeAll();this.itemMouseOutEvent.unsubscribeAll();this.itemArrowToEvent.unsubscribeAll();this.itemArrowFromEvent.unsubscribeAll();this.itemSelectEvent.unsubscribeAll();this.unmatchedItemSelectEvent.unsubscribeAll();this.selectionEnforceEvent.unsubscribeAll();this.containerCollapseEvent.unsubscribeAll();this.textboxBlurEvent.unsubscribeAll();this.textboxChangeEvent.unsubscribeAll();YAHOO.util.Event.purgeElement(A,true);YAHOO.util.Event.purgeElement(D,true);D.innerHTML="";for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerPopulateEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;
YAHOO.widget.AutoComplete.prototype.textboxChangeEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._elTextbox=null;YAHOO.widget.AutoComplete.prototype._elContainer=null;YAHOO.widget.AutoComplete.prototype._elContent=null;YAHOO.widget.AutoComplete.prototype._elHeader=null;YAHOO.widget.AutoComplete.prototype._elBody=null;YAHOO.widget.AutoComplete.prototype._elFooter=null;YAHOO.widget.AutoComplete.prototype._elShadow=null;YAHOO.widget.AutoComplete.prototype._elIFrame=null;YAHOO.widget.AutoComplete.prototype._bFocused=null;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._elList=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sPastSelections="";YAHOO.widget.AutoComplete.prototype._sInitInputValue=null;YAHOO.widget.AutoComplete.prototype._elCurListItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var B=this.minQueryLength;if(!YAHOO.lang.isNumber(B)){this.minQueryLength=1;}var E=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(E)||(E<1)){this.maxResultsDisplayed=10;}var F=this.queryDelay;if(!YAHOO.lang.isNumber(F)||(F<0)){this.queryDelay=0.2;}var C=this.typeAheadDelay;if(!YAHOO.lang.isNumber(C)||(C<0)){this.typeAheadDelay=0.2;}var A=this.delimChar;if(YAHOO.lang.isString(A)&&(A.length>0)){this.delimChar=[A];}else{if(!YAHOO.lang.isArray(A)){this.delimChar=null;}}var D=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(D)||(D<0)){this.animSpeed=0.3;}if(!this._oAnim){this._oAnim=new YAHOO.util.Anim(this._elContent,{},this.animSpeed);}else{this._oAnim.duration=this.animSpeed;}}if(this.forceSelection&&A){}};YAHOO.widget.AutoComplete.prototype._initContainerHelperEls=function(){if(this.useShadow&&!this._elShadow){var A=document.createElement("div");A.className="yui-ac-shadow";A.style.width=0;A.style.height=0;this._elShadow=this._elContainer.appendChild(A);}if(this.useIFrame&&!this._elIFrame){var B=document.createElement("iframe");B.src=this._iFrameSrc;B.frameBorder=0;B.scrolling="no";B.style.position="absolute";B.style.width=0;B.style.height=0;B.tabIndex=-1;B.style.padding=0;this._elIFrame=this._elContainer.appendChild(B);}};YAHOO.widget.AutoComplete.prototype._initContainerEl=function(){YAHOO.util.Dom.addClass(this._elContainer,"yui-ac-container");if(!this._elContent){var C=document.createElement("div");C.className="yui-ac-content";C.style.display="none";this._elContent=this._elContainer.appendChild(C);var B=document.createElement("div");B.className="yui-ac-hd";B.style.display="none";this._elHeader=this._elContent.appendChild(B);var D=document.createElement("div");D.className="yui-ac-bd";this._elBody=this._elContent.appendChild(D);var A=document.createElement("div");A.className="yui-ac-ft";A.style.display="none";this._elFooter=this._elContent.appendChild(A);}else{}};YAHOO.widget.AutoComplete.prototype._initListEl=function(){var C=this.maxResultsDisplayed;var A=this._elList||document.createElement("ul");var B;while(A.childNodes.length<C){B=document.createElement("li");B.style.display="none";B._nItemIndex=A.childNodes.length;A.appendChild(B);}if(!this._elList){var D=this._elBody;YAHOO.util.Event.purgeElement(D,true);D.innerHTML="";this._elList=D.appendChild(A);}};YAHOO.widget.AutoComplete.prototype._focus=function(){var A=this;setTimeout(function(){try{A._elTextbox.focus();}catch(B){}},0);};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var A=this;if(!A._queryInterval&&A.queryInterval){A._queryInterval=setInterval(function(){A._onInterval();},A.queryInterval);}};YAHOO.widget.AutoComplete.prototype._onInterval=function(){var A=this._elTextbox.value;var B=this._sLastTextboxValue;if(A!=B){this._sLastTextboxValue=A;this._sendQuery(A);}};YAHOO.widget.AutoComplete.prototype._clearInterval=function(){if(this._queryInterval){clearInterval(this._queryInterval);this._queryInterval=null;}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(A){if((A==9)||(A==13)||(A==16)||(A==17)||(A>=18&&A<=20)||(A==27)||(A>=33&&A<=35)||(A>=36&&A<=40)||(A>=44&&A<=45)||(A==229)){return true;}return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(D){if(this.minQueryLength<0){this._toggleContainer(false);return;}if(this.delimChar){var A=this._extractQuery(D);D=A.query;this._sPastSelections=A.previous;}if((D&&(D.length<this.minQueryLength))||(!D&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID);}this._toggleContainer(false);return;}D=encodeURIComponent(D);this._nDelayID=-1;if(this.dataSource.queryMatchSubset||this.queryMatchSubset){var C=this.getSubsetMatches(D);if(C){this.handleResponse(D,C,{query:D});return;}}if(this.responseStripAfter){this.dataSource.doBeforeParseData=this.preparseRawResponse;}if(this.applyLocalFilter){this.dataSource.doBeforeCallback=this.filterResults;}var B=this.generateRequest(D);this.dataRequestEvent.fire(this,D,B);this.dataSource.sendRequest(B,{success:this.handleResponse,failure:this.handleResponse,scope:this,argument:{query:D}});};YAHOO.widget.AutoComplete.prototype._populateList=function(K,F,C){if(this._nTypeAheadDelayID!=-1){clearTimeout(this._nTypeAheadDelayID);}K=(C&&C.query)?C.query:K;var H=this.doBeforeLoadData(K,F,C);if(H&&!F.error){this.dataReturnEvent.fire(this,K,F.results);if(this._bFocused||(this._bFocused===null)){var M=decodeURIComponent(K);this._sCurQuery=M;
this._bItemSelected=false;var R=F.results,A=Math.min(R.length,this.maxResultsDisplayed),J=(this.dataSource.responseSchema.fields)?(this.dataSource.responseSchema.fields[0].key||this.dataSource.responseSchema.fields[0]):0;if(A>0){if(!this._elList||(this._elList.childNodes.length<A)){this._initListEl();}this._initContainerHelperEls();var I=this._elList.childNodes;for(var Q=A-1;Q>=0;Q--){var P=I[Q],E=R[Q];if(this.resultTypeList){var B=[];B[0]=(YAHOO.lang.isString(E))?E:E[J]||E[this.key];var L=this.dataSource.responseSchema.fields;if(YAHOO.lang.isArray(L)&&(L.length>1)){for(var N=1,S=L.length;N<S;N++){B[B.length]=E[L[N].key||L[N]];}}else{if(YAHOO.lang.isArray(E)){B=E;}else{if(YAHOO.lang.isString(E)){B=[E];}else{B[1]=E;}}}E=B;}P._sResultMatch=(YAHOO.lang.isString(E))?E:(YAHOO.lang.isArray(E))?E[0]:(E[J]||"");P._oResultData=E;P.innerHTML=this.formatResult(E,M,P._sResultMatch);P.style.display="";}if(A<I.length){var G;for(var O=I.length-1;O>=A;O--){G=I[O];G.style.display="none";}}this._nDisplayedItems=A;this.containerPopulateEvent.fire(this,K,R);if(this.autoHighlight){var D=this._elList.firstChild;this._toggleHighlight(D,"to");this.itemArrowToEvent.fire(this,D);this._typeAhead(D,K);}else{this._toggleHighlight(this._elCurListItem,"from");}H=this.doBeforeExpandContainer(this._elTextbox,this._elContainer,K,R);this._toggleContainer(H);}else{this._toggleContainer(false);}return;}}else{this.dataErrorEvent.fire(this,K);}};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var A=(this.delimChar)?this._extractQuery(this._elTextbox.value):{previous:"",query:this._elTextbox.value};this._elTextbox.value=A.previous;this.selectionEnforceEvent.fire(this,A.query);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var A=null;for(var B=0;B<this._nDisplayedItems;B++){var C=this._elList.childNodes[B];var D=(""+C._sResultMatch).toLowerCase();if(D==this._sCurQuery.toLowerCase()){A=C;break;}}return(A);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(B,D){if(!this.typeAhead||(this._nKeyCode==8)){return;}var A=this,C=this._elTextbox;if(C.setSelectionRange||C.createTextRange){this._nTypeAheadDelayID=setTimeout(function(){var F=C.value.length;A._updateValue(B);var G=C.value.length;A._selectText(C,F,G);var E=C.value.substr(F,G);A.typeAheadEvent.fire(A,D,E);},(this.typeAheadDelay*1000));}};YAHOO.widget.AutoComplete.prototype._selectText=function(D,A,B){if(D.setSelectionRange){D.setSelectionRange(A,B);}else{if(D.createTextRange){var C=D.createTextRange();C.moveStart("character",A);C.moveEnd("character",B-D.value.length);C.select();}else{D.select();}}};YAHOO.widget.AutoComplete.prototype._extractQuery=function(H){var C=this.delimChar,F=-1,G,E,B=C.length-1,D;for(;B>=0;B--){G=H.lastIndexOf(C[B]);if(G>F){F=G;}}if(C[B]==" "){for(var A=C.length-1;A>=0;A--){if(H[F-1]==C[A]){F--;break;}}}if(F>-1){E=F+1;while(H.charAt(E)==" "){E+=1;}D=H.substring(0,E);H=H.substr(E);}else{D="";}return{previous:D,query:H};};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(D){var E=this._elContent.offsetWidth+"px";var B=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){var C=this._elIFrame;if(D){C.style.width=E;C.style.height=B;C.style.padding="";}else{C.style.width=0;C.style.height=0;C.style.padding=0;}}if(this.useShadow&&this._elShadow){var A=this._elShadow;if(D){A.style.width=E;A.style.height=B;}else{A.style.width=0;A.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(I){var D=this._elContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return;}if(!I){this._toggleHighlight(this._elCurListItem,"from");this._nDisplayedItems=0;this._sCurQuery=null;if(this._elContent.style.display=="none"){return;}}var A=this._oAnim;if(A&&A.getEl()&&(this.animHoriz||this.animVert)){if(A.isAnimated()){A.stop(true);}var G=this._elContent.cloneNode(true);D.appendChild(G);G.style.top="-9000px";G.style.width="";G.style.height="";G.style.display="";var F=G.offsetWidth;var C=G.offsetHeight;var B=(this.animHoriz)?0:F;var E=(this.animVert)?0:C;A.attributes=(I)?{width:{to:F},height:{to:C}}:{width:{to:B},height:{to:E}};if(I&&!this._bContainerOpen){this._elContent.style.width=B+"px";this._elContent.style.height=E+"px";}else{this._elContent.style.width=F+"px";this._elContent.style.height=C+"px";}D.removeChild(G);G=null;var H=this;var J=function(){A.onComplete.unsubscribeAll();if(I){H._toggleContainerHelpers(true);H._bContainerOpen=I;H.containerExpandEvent.fire(H);}else{H._elContent.style.display="none";H._bContainerOpen=I;H.containerCollapseEvent.fire(H);}};this._toggleContainerHelpers(false);this._elContent.style.display="";A.onComplete.subscribe(J);A.animate();}else{if(I){this._elContent.style.display="";this._toggleContainerHelpers(true);this._bContainerOpen=I;this.containerExpandEvent.fire(this);}else{this._toggleContainerHelpers(false);this._elContent.style.display="none";this._bContainerOpen=I;this.containerCollapseEvent.fire(this);}}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(A,C){if(A){var B=this.highlightClassName;if(this._elCurListItem){YAHOO.util.Dom.removeClass(this._elCurListItem,B);this._elCurListItem=null;}if((C=="to")&&B){YAHOO.util.Dom.addClass(A,B);this._elCurListItem=A;}}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(B,C){if(B==this._elCurListItem){return;}var A=this.prehighlightClassName;if((C=="mouseover")&&A){YAHOO.util.Dom.addClass(B,A);}else{YAHOO.util.Dom.removeClass(B,A);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(C){if(!this.suppressInputUpdate){var F=this._elTextbox;var E=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var B=C._sResultMatch;var D="";if(E){D=this._sPastSelections;D+=B+E;if(E!=" "){D+=" ";}}else{D=B;}F.value=D;if(F.type=="textarea"){F.scrollTop=F.scrollHeight;}var A=F.value.length;this._selectText(F,A,A);this._elCurListItem=C;}};YAHOO.widget.AutoComplete.prototype._selectItem=function(A){this._bItemSelected=true;this._updateValue(A);this._sPastSelections=this._elTextbox.value;
this._clearInterval();this.itemSelectEvent.fire(this,A,A._oResultData);this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._elCurListItem){this._selectItem(this._elCurListItem);}else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(G){if(this._bContainerOpen){var H=this._elCurListItem,D=-1;if(H){D=H._nItemIndex;}var E=(G==40)?(D+1):(D-1);if(E<-2||E>=this._nDisplayedItems){return;}if(H){this._toggleHighlight(H,"from");this.itemArrowFromEvent.fire(this,H);}if(E==-1){if(this.delimChar){this._elTextbox.value=this._sPastSelections+this._sCurQuery;}else{this._elTextbox.value=this._sCurQuery;}return;}if(E==-2){this._toggleContainer(false);return;}var F=this._elList.childNodes[E],B=this._elContent,C=YAHOO.util.Dom.getStyle(B,"overflow"),I=YAHOO.util.Dom.getStyle(B,"overflowY"),A=((C=="auto")||(C=="scroll")||(I=="auto")||(I=="scroll"));if(A&&(E>-1)&&(E<this._nDisplayedItems)){if(G==40){if((F.offsetTop+F.offsetHeight)>(B.scrollTop+B.offsetHeight)){B.scrollTop=(F.offsetTop+F.offsetHeight)-B.offsetHeight;}else{if((F.offsetTop+F.offsetHeight)<B.scrollTop){B.scrollTop=F.offsetTop;}}}else{if(F.offsetTop<B.scrollTop){this._elContent.scrollTop=F.offsetTop;}else{if(F.offsetTop>(B.scrollTop+B.offsetHeight)){this._elContent.scrollTop=(F.offsetTop+F.offsetHeight)-B.offsetHeight;}}}}this._toggleHighlight(F,"to");this.itemArrowToEvent.fire(this,F);if(this.typeAhead){this._updateValue(F);}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":if(C.prehighlightClassName){C._togglePrehighlight(D,"mouseover");}else{C._toggleHighlight(D,"to");}C.itemMouseOverEvent.fire(C,D);break;case"div":if(YAHOO.util.Dom.hasClass(D,"yui-ac-container")){C._bOverContainer=true;return;}break;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":if(C.prehighlightClassName){C._togglePrehighlight(D,"mouseout");}else{C._toggleHighlight(D,"from");}C.itemMouseOutEvent.fire(C,D);break;case"ul":C._toggleHighlight(C._elCurListItem,"to");break;case"div":if(YAHOO.util.Dom.hasClass(D,"yui-ac-container")){C._bOverContainer=false;return;}break;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerClick=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":C._toggleHighlight(D,"to");C._selectItem(D);return;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(A,B){B._focus();};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(A,B){B._toggleContainerHelpers(B._bContainerOpen);};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(A,B){var C=A.keyCode;if(B._nTypeAheadDelayID!=-1){clearTimeout(B._nTypeAheadDelayID);}switch(C){case 9:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(B._elCurListItem){if(B.delimChar&&(B._nKeyCode!=C)){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 13:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(B._elCurListItem){if(B._nKeyCode!=C){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 27:B._toggleContainer(false);return;case 39:B._jumpSelection();break;case 38:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);B._moveSelection(C);}break;case 40:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);B._moveSelection(C);}break;default:B._bItemSelected=false;B._toggleHighlight(B._elCurListItem,"from");B.textboxKeyEvent.fire(B,C);break;}if(C===18){B._enableIntervalDetection();}B._nKeyCode=C;};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(A,B){var C=A.keyCode;if(YAHOO.env.ua.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&(YAHOO.env.ua.webkit<420)){switch(C){case 9:if(B._bContainerOpen){if(B.delimChar){YAHOO.util.Event.stopEvent(A);}if(B._elCurListItem){B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 13:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);if(B._elCurListItem){B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;default:break;}}else{if(C==229){B._enableIntervalDetection();}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(A,C){var B=this.value;C._initProps();var D=A.keyCode;if(C._isIgnoreKey(D)){return;}if(C._nDelayID!=-1){clearTimeout(C._nDelayID);}C._nDelayID=setTimeout(function(){C._sendQuery(B);},(C.queryDelay*1000));};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(A,B){if(!B._bFocused){B._elTextbox.setAttribute("autocomplete","off");B._bFocused=true;B._sInitInputValue=B._elTextbox.value;B.textboxFocusEvent.fire(B);}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(A,C){if(!C._bOverContainer||(C._nKeyCode==9)){if(!C._bItemSelected){var B=C._textMatchesOption();if(!C._bContainerOpen||(C._bContainerOpen&&(B===null))){if(C.forceSelection){C._clearSelection();}else{C.unmatchedItemSelectEvent.fire(C,C._sCurQuery);}}else{if(C.forceSelection){C._selectItem(B);}}}C._clearInterval();C._bFocused=false;if(C._sInitInputValue!==C._elTextbox.value){C.textboxChangeEvent.fire(C);}C.textboxBlurEvent.fire(C);C._toggleContainer(false);}else{C._focus();}};YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(A,B){if(B&&B._elTextbox&&B.allowBrowserAutocomplete){B._elTextbox.setAttribute("autocomplete","on");}};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(A){return this.generateRequest(A);
};YAHOO.widget.AutoComplete.prototype.getListItems=function(){var C=[],B=this._elList.childNodes;for(var A=B.length-1;A>=0;A--){C[A]=B[A];}return C;};YAHOO.widget.AutoComplete._cloneObject=function(D){if(!YAHOO.lang.isValue(D)){return D;}var F={};if(YAHOO.lang.isFunction(D)){F=D;}else{if(YAHOO.lang.isArray(D)){var E=[];for(var C=0,B=D.length;C<B;C++){E[C]=YAHOO.widget.AutoComplete._cloneObject(D[C]);}F=E;}else{if(YAHOO.lang.isObject(D)){for(var A in D){if(YAHOO.lang.hasOwnProperty(D,A)){if(YAHOO.lang.isValue(D[A])&&YAHOO.lang.isObject(D[A])||YAHOO.lang.isArray(D[A])){F[A]=YAHOO.widget.AutoComplete._cloneObject(D[A]);}else{F[A]=D[A];}}}}else{F=D;}}}return F;};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.7.0",build:"1799"});
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/widgets/autocomplete/autocomplete-min.js */
(function(){var d=YAHOO.util;var g=YAHOO.lang;var f=YAHOO.widget;var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var h=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.widgets");var e=48;a.Autocomplete=function(l,k,j,n){this.el=l;var i=l.parentNode;if(!j){log.debug("Attempting to find existing sibling div");j=h.Dom.getElementByClassName("autocompletions","div",i);}if(!j){j=document.createElement("div");j.className="autocompletions";i.insertBefore(j,null);}var m=new f.AutoComplete(l,j,k);m.generateRequest=function(o){return o.replace(new RegExp("[%20]+$"),"")+"*";};m.doBeforeLoadData=function(q,o,p){if(!o.results.length){this.collapseContainer();}return true;};m.formatResult=function(p,q,o){return h.Text.ellipse(o,e);};m.resultTypeList=false;m.minQueryLength=1;m.autoHighlight=false;m.itemSelectEvent.subscribe(this.onItemSelect);};a.Autocomplete.prototype={onItemSelect:function(l,k){var i=null;try{i=k[2]["Location[0].DimValueName"];}catch(j){log.warn("Unable to find item term for autocompletion.");}if(i){_widgets.context.SearchContext.triggerSearch(i);}}};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/widgets/sitesearch-input/sitesearch-input-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var f=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.widgets");var d=getPackageForName("com.forddirect.ng.context");a.SiteSearchInput=function(h,j){this.el=h;this.searchForm=f.Dom.getElementByClassName("site-search-form","form",this.el);if(!this.searchForm){log.error("Unable to find form with class 'site-search-form' on this widget.");}this.searchText=f.Dom.getElementByClassName("site-search-input","input",this.el);if(!this.searchText){log.error("Unable to find input with class 'site-search-input' on this widget.");}this.searchButton=f.Dom.getElementByClassName("search-go","input",this.el);if(!this.searchButton){log.error("Unable to find button with class 'search-go' on this widget.");}var g=(j&&j.autocomplete)||false;if(g){var i=new a.Autocomplete(this.searchText,_widgets.context.SearchContext.getAutocompleteDataSource());}this.searchType=j.searchType||"search";_widgets.context.SearchContext.subscribe(this.searchType+"TextChange",this.handleTextChange,this,true);this.onSearchTextBlur();b.on(this.searchText,"focus",this.onSearchTextFocus,this,true);b.on(this.searchText,"blur",this.onSearchTextBlur,this,true);b.on(this.searchForm,"submit",this.searchSubmit,this,true);b.on(this.searchText,"keydown",this.onSearchKeyDown,this,true);b.on(this.searchText,"click",this.onSearchTextClick,this,true);};var e=a.SiteSearchInput.prototype;e.show=function(){c.removeClass(this.el,"inactive");};e.hide=function(){c.addClass(this.el,"inactive");};e.onSearchTextFocus=function(g){if(this.searchText.value===_widgets.context.SearchContext.DEFAULT_SEARCH_STRING){this.searchText.value="";c.removeClass(this.searchText,"default-text");}else{this.searchText.select();c.removeClass(this.searchText,"default-text");}};e.onSearchTextBlur=function(g){if(this.searchText.value===""||f.Array.contains(_widgets.context.SearchContext.DEFAULT_VALUES,this.searchText.value)){this.searchText.value=_widgets.context.SearchContext.DEFAULT_SEARCH_STRING;c.addClass(this.searchText,"default-text");}};e.searchSubmit=function(g){var h=f.trimString(this.searchText.value);if(h===""||f.Array.contains(_widgets.context.SearchContext.DEFAULT_VALUES,h)){this.searchText.value=_widgets.context.SearchContext.DEFAULT_NOWORD_STRING;this.searchText.focus();this.searchText.select();b.stopEvent(g);}};e.onSearchKeyDown=function(g){if(g.keyCode==13){g.returnValue=false;g.cancel=true;this.searchButton.click();}};e.handleTextChange=function(g){if(g.newValue){this.searchText.value=g.newValue;}};e.onSearchTextClick=function(g){if(f.Array.contains(_widgets.context.SearchContext.DEFAULT_VALUES,this.searchText.value)){this.searchText.value="";}};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/widgets/globalnav/knova-search-input-min.js */
(function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var g=getPackageForName("com.forddirect.ng.util");var a=getPackageForName("com.forddirect.ng.widgets");var e="Buscar";var f="Please enter keyword...";a.KnovaSearchInput=function(h,i){this.el=h;this.searchForm=g.Dom.getElementByClassName("site-search-form","form",this.el);if(!this.searchForm){log.error("Unable to find form with class 'site-search-form' on this widget.");}this.searchText=g.Dom.getElementByClassName("site-search-input","input",this.el);if(!this.searchText){log.error("Unable to find input with class 'site-search-input' on this widget.");}this.searchButton=g.Dom.getElementByClassName("search-go","input",this.el);if(!this.searchButton){log.error("Unable to find button with class 'search-go' on this widget.");}this.searchType=i.searchType||"search";_widgets.context.SearchContext.subscribe(this.searchType+"TextChange",this.handleTextChange,this,true);this.onSearchTextBlur();b.on(this.searchText,"focus",this.onSearchTextFocus,this,true);b.on(this.searchText,"blur",this.onSearchTextBlur,this,true);b.on(this.searchForm,"submit",this.searchSubmit,this,true);b.on(this.searchText,"keydown",this.onSearchKeyDown,this,true);};var d=a.KnovaSearchInput.prototype;d.onSearchTextFocus=function(h){if(this.searchText.value===e||this.searchText.value===f){this.searchText.value="";c.removeClass(this.searchText,"default-text");}else{this.searchText.select();}};d.onSearchTextBlur=function(h){if(this.searchText.value===""||this.searchText.value===e||this.searchText.value===f){this.searchText.value=e;c.addClass(this.searchText,"default-text");}};d.searchSubmit=function(h){if(this.searchText.value===""||this.searchText.value===f||this.searchText.value===e){this.searchText.value=f;b.stopEvent(h);}};d.handleTextChange=function(h){if(h.newValue){this.searchText.value=h.newValue;}};})();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/widgets/globalnav/globalnav-header-min.js */
if(!this.td_site){td_site={vars:{isIE:(navigator.userAgent.toLowerCase().search("msie")>-1),isFox:(navigator.userAgent.toLowerCase().search("firefox")>-1),isMac:(navigator.userAgent.toLowerCase().search("macintosh;")>-1),autoInish:["build","page"],zIndex:{navFlyout:100},events:{load:0}},utils:function(b){for(var a in b){this[a]=b[a];}this.addListener=function(h,g,d){for(var c=0;c<g.length;c++){if(this.vars.isIE){h.attachEvent("on"+g[c],d);}else{h.addEventListener(g[c],d,0);}}},this.getElementsById=function(c){var d=[];if(document.getElementById(c)){while(document.getElementById(c)){d.push(document.getElementById(c));document.getElementById(c).id=c+"_"+(d.length-1);}}return d;};this.findChildren=function(c,d,j,h){var f=[];for(var e=0;e<c.childNodes.length;e++){if(c.childNodes[e].tagName){if(d&&c.childNodes[e].tagName.toLowerCase()==d){f.push(c.childNodes[e]);if(h){return f;}}else{if(!d){f.push(c.childNodes[e]);if(h){return f;}}}if(j&&c.childNodes[e].childNodes.length){var g=this.findChildren(c.childNodes[e],d,j);while(g.length){f.push(g.shift());}}}}return f;};this.getPos=function(h,e){if(typeof(h)=="string"){h=document.getElementById(h);}var j=document.getElementsByTagName("body")[0];var g=document.documentElement.scrollLeft;var m=document.documentElement.scrollTop;if(document.getBoxObjectFor){var c=document.getBoxObjectFor(h);var i={l:c.x,t:c.y,r:c.width+c.x,b:c.y+c.height};}else{if(h.getBoundingClientRect){var c=h.getBoundingClientRect();var i={l:c.left-2+g,t:c.top-2+m,r:c.right-2+g,b:c.bottom-2+m};}else{var f=h.offsetLeft;var k=h.offsetTop;var i={l:f,t:k,r:f+h.offsetWidth,b:k+h.offsetHeight};var d=h.offsetParent;if(e){d=h.parentNode;}while(d){f=d.offsetLeft;k=d.offsetTop;if(f){i.l+=f;i.r+=f;}if(k){i.t+=k;i.b+=k;}if(e){d=d.parentNode;}else{d=d.offsetParent;}}}}return i;},this.cElm=function(c,d){return c.appendChild(document.createElement(d));},this.cTable=function(){var d=document.createElement("TABLE");d.cellPadding=d.cellSpacing=d.border=0;var c=this.cElm(d,"tbody");return{t:d,tb:c};};},build:{},fun:{event:function(a,b){var a=a;var b=b;this.run=function(c){if(!c){c=event;}a.event.run(c,b,a);};},goLink:function(a){this.url=a;this.event={run:function(c,d,b){document.location=b.url;}};},cancelEvent:function(){this.event={run:function(b,c,a){b.returnValue=false;}};}},inish:function(f,j,k,g){this.self=f;this.name=j;this.par=k;this.vars=f.vars;if(!this.vars){this.vars={};}if(f.utils){this.utils=new f.utils({self:f.utils,name:j,vars:this.vars,par:f,site:g});this.utils.self=this.utils;}this.fun=f.fun;this.site=g;if(!g){g=f;}if(this.preInish){this.preInish();}if(f.name){var b=this.vars.autoInish;if(!b){b=this.site.vars.autoInish;}if(!b){return;}for(var d=0;d<b.length;d++){var c=f[b[d]];for(var h in c){f[h]=c[h];if(f[h].inish){f[h].inish(f[h],h,f,g);}else{f[h]=new f[h]({name:h,par:f,vars:this.vars,utils:this.utils,site:g});f[h].self=f[h];}}delete c;}if(this.postInish){this.postInish();}}delete f.inish;}};td_site.page={rounder:{vars:{clone:{},classes:[["tl","t","tr"],["ml","m","mr"],["bl","b","br"]]},utils:function(b){for(var a in b){this[a]=b[a];}this.cElm=b.site.utils.cElm;this.make=function(i,h,f){if(!f){f="";}if(!this.par.vars.clone[i]){var d=document.createElement("TABLE");d.cellPadding=d.cellSpacing=d.border=0;var c=this.cElm(d,"TBODY");switch(h){case"full":for(var e=0;e<3;e++){this.par.makeRow.run(c,e,"fullrow",f);}break;case"top":this.par.makeRow.run(c,0,"fullrow",f);var g=this.par.makeRow.run(c,0,"fullspan",f);g.className="m"+f;g.innerHTML="";break;case"mid":this.par.makeRow.run(c,1,"fullrow",f);break;}this.par.vars.clone[i]=d;}return this.par.vars.clone[i].cloneNode(1);},this.clear=function(){this.par.vars.clone={};};},build:{makeRow:function(a){this.classes=a.vars.classes;this.span=a.vars.classes[0].length;this.cElm=a.site.utils.cElm;this.run=function(k,d,b,h){switch(b.toLowerCase()){case"fullrow":var i=this.classes[d];var g=this.cElm(k,"tr");for(var f=0;f<i.length;f++){var e=this.cElm(g,"td");var j=i[f];e.className=j+h;if(j!="m"){if(!(f%2)&&j.substr(0,1)!="m"){e.className+=" corner"+h;}else{e.className+=" outer"+h;}e.innerHTML="<div class='spDIV1x1'>&nbsp;</DIV>";}}break;case"fullspan":var e=this.cElm(this.cElm(k,"tr"),"td");e.colSpan=this.span;e.innerHTML="<div class='spDIV1x1'>&nbsp;</DIV>";return e;break;}};}},inish:td_site.inish},overout:{vars:{g:{}},utils:function(b){for(var a in b){this[a]=b[a];}this.add=function(h,c,f){if(!h.length){h=[h];}if(!c){c=this.par.run;}var g=(new Date).getTime();this.par.vars.g[g]={s:0,o:0};for(var e=0;e<h.length;e++){var j=new this.site.fun.event(new this.par.fun.run(f,this.par.vars.g[g]),h[e]);this.site.utils.addListener(h[e],["mouseover","mouseout"],j.run);}};},fun:{run:function(b,a){this.TO=b;this.group=a;this.event={run:function(g,h,f){clearTimeout(f.TO);if(f.group.o&&f.group.o!=h){f.group.s.fun();}var d=g.type;var i=h.className.split("_");i[i.length-1]=d;i=i.join("_");var c=function(){h.className=i;};if(g.type=="mouseout"&&f.TO){f.group={s:f,o:h};f.TO=setTimeout(c,1);}else{c();}}};}},inish:td_site.inish}};td_site.page.nav={vars:{allVehics:0,iconSprite:[[120,0,480],[240,300,180],[60,360,540],[-1,420,600]],btnClose:"btnClose",iconSpriteV:-63},utils:function(o){for(var e in o){this[e]=o[e];}this.run=function(){if(!document.td_SiteNavVars||!document.td_shopTools.vars){var s=this.par.utils;var fun={to:function(){s.run();}};this.TO=setTimeout(fun.to,50);return;}eval(document.td_SiteNavVars.allVehics.value);eval(document.td_shopTools.vars.value);var t=document.getElementById("tdi_menuTopTable");var tds=t.rows[0].cells;var u=this.site.utils;var oo=this.site.overout.utils;var r=this.site.rounder.utils;var go=this.site.fun.goLink;var tAry=[];var ev=["mouseup","mouseover","mouseout"];if(location.search){var locAry=location.toString().split(location.search)[0].split("/");}else{var locAry=location.toString().split("/");}var subDir=locAry[3].toLowerCase();var trim=document.location.search.split("trim=");if(trim.length>1){trim=trim.pop().split("&")[0];subDir=trim.toLowerCase();}if(subDir=="hybrid"){subDir="hybrids";}if(!subDir.length){ev=["mouseover","mouseout"];}this.par.subDir=subDir.length;for(var c=0;c<tds.length-1;c++){var d=u.findChildren(tds[c],"div",0,1)[0];var table=r.make(tds[c],"top","");var id=tds[c].id.split("_").pop();table.rows[1].cells[0].appendChild(d);table.rows[1].cells[0].vAlign="top";if(subDir&&id.toLowerCase()==subDir){table.className="catTABLEcatOn_mouseout";}else{table.className="catTABLE_mouseout";}table=tds[c].appendChild(table);var n=new this.site.fun.event(this.par.animate,tds[c]);this.site.utils.addListener(tds[c],ev,n.run);}var n=new this.site.fun.event(this.par.animate,tds[c]);this.site.utils.addListener(tds[c],ev,n.run);document.getElementById("tdi_menuTopTable").style.visibility="visible";var bc=document.getElementById(this.par.vars.btnClose);var n=new this.site.fun.event(this.par.animate,bc);this.site.utils.addListener(bc,["mouseup"],n.run);this.par.vars.btnClose=bc;var t=u.getElementsById("td_evt_vlOO");for(var i=0;i<t.length;i++){oo.add(t[i],0,1);}var t=u.getElementsById("overOut");for(var i=0;i<t.length;i++){oo.add(t[i],0,1);}var pd=u.findChildren(document.getElementById("tdi_globalNav_all_div"),"table",0,1)[0].rows[0].cells[0];var ary=this.vars.allVehics;var ord=ary.ORDER;for(var r=0;r<ord.length;r++){var t=u.cTable();t.t.width="100%";t.t.className="vehicGroupTABLE";var tr=u.cElm(t.tb,"tr");for(var c=0;c<ord[r].length;c++){var td=u.cElm(tr,"td");var n=ord[r][c];var nCN=n.replace(/ /gi,"_");td.className=nCN+"_TD "+n;var d=u.cElm(td,"div");d.className=nCN+"_div typeDIV";var targ=ary[n].ORDER;var tt=u.cTable();var ttdName=u.cElm(u.cElm(tt.tb,"tr"),"td");ttdName.innerHTML=n;ttdName.className="vehicType "+nCN;var cs=0;var ttr=u.cElm(tt.tb,"tr");for(var i=0;i<targ.length;i++){var nn=targ[i];if(nn){cs++;var ttd=u.cElm(ttr,"td");var nn=targ[i];var uNN=nn.replace(/ /gi,"_");ttd.className="vehicSmall "+uNN;ttd.id="iconExp";var url=u.cElm(ttd,"a");url.href=ary[n][nn].url;var clipDiv=u.cElm(url,"div");clipDiv.className="clipDiv";var im=u.cElm(clipDiv,"img");im.className="imgIcon";im.src=ary[n][nn].img;var p=u.cElm(ttd,"p");p.className="name "+uNN;p.innerHTML=nn;var p=u.cElm(ttd,"p");p.className="price "+uNN;if(ary[n][nn].msrp){p.innerHTML="$"+ary[n][nn].msrp+'<sup class="footnoteIndicator" disclaimer="disclaimerStartingMSRP"></sup>';}else{p.innerHTML="&nbsp;";}}}ttdName.colSpan=cs;d.appendChild(tt.t);}if(c>1){td.align="right";d.style["float"]="right";}pd.appendChild(t.t);}t.t.className+=" lastTABLE";td_site.page.iconExp.utils.run("iconExp","globalnav-content","td_iconExpClass","globalnav-content");var rTab=u.cTable();var tr=u.cElm(rTab.tb,"tr");for(var i=0;i<2;i++){var td=u.cElm(tr,"td");td.vAlign="top";}var cloneT=rTab.t;var l=this.par.vars.shopTools;var table=u.cTable();var tr=u.cElm(table.tb,"TR");var ml=oL=0;var ary=[];var tr=u.cElm(table.tb,"tr");for(var c=0;c<l.length-1;c++){var td=u.cElm(tr,"td");td.className="header";td.innerHTML=l[c].n;ary.push(l[c].c);if(l[c].c.length>ml){ml=l[c].c.length;}}for(var row=0;row<ml;row++){var tr=u.cElm(table.tb,"tr");for(var c=0;c<ary.length;c++){var td=u.cElm(tr,"TD");td.vAlign="top";var DIV=u.cElm(td,"div");DIV.className="shopItem_mouseout";var rTable=DIV.appendChild(this.site.rounder.utils.make("shopItem","full"));if(ary[c].length){var table2=rTable.rows[1].cells[1].appendChild(cloneT.cloneNode(1));table2.className="textTable";var cel=table2.rows[0].cells;var ret=ary[c].shift();if(ret){var link=ret.h;cel[1].innerHTML='<a class="'+ret.c+'" title="'+ret.t+'" href="'+ret.h+'" ><h3>"'+ret.h3+'"</h3><p>'+ret.p+"</p></a>";cel[1].className="text";cel[1].align="left";var iDiv=u.cElm(cel[0],"div");iDiv.className="icon icon_"+ret.c;iDiv.style.backgroundPosition="-"+this.vars.iconSprite[row][c]+"px 0px";oo.add(DIV);var n=new this.site.fun.event(new this.par.fun.moveIcon(iDiv,this.vars.iconSpriteV),DIV);this.site.utils.addListener(DIV,["mouseover","mouseout"],n.run);var n=new this.site.fun.event(new go(ret.h),DIV);this.site.utils.addListener(DIV,["mouseup"],n.run);}}else{td.innerHTML="&nbsp;";}}}var el=document.getElementById("tdi_globalNav_shoppingtools_div");el.innerHTML="<CENTER></CENTER>";el.childNodes[0].appendChild(table.t);var t=document.getElementById("shellDiv");this.par.animate.set(t,document.getElementById("globalnav-content"));};},build:{animate:function(a){this.par=a.par;this.site=a.site;this.u=a.site.utils;this.bForceClose=this.bAnimate=this.targ=this.obj=this.cur=this.TO=this.moTO=this.time=this.speed=this.cH=this.extHold=0;this.dir=1;this.getPos=function(){return this.u.getPos(this.targ);};this.set=function(c,b){this.targ=b;this.heightObj=c;this.h=this.targ.offsetHeight;this.speed=this.h/200;this.targ.style.height="0px";this.targ.style.display="none";this.targ.style.visibility="visible";this.targ.style.overflow="hidden";var d=new this.par.site.fun.event(this.par.animate,b);this.u.addListener(b,["mouseout","mouseover"],d.run);};this.setGroup=function(){};this.close=function(){};this.extEvent=function(d){clearTimeout(this.moTO);if(d=="mouseout"){var c=this;var b={to:function(){c.start();}};this.moTO=setTimeout(b.to,50);}};this.start=function(e,c){clearTimeout(this.moTO);this.moTO=0;this.lastAction=e;if(c==this.targ||this.site.iconExp.getSate.isVis()){return;}if(this.obj!=c){if(this.obj){this.obj.className=this.obj.className.replace(/_mouseover/gi,"_mouseout");}if(c){if(this.cur){this.cur.style.display="none";}this.obj=this.u.findChildren(c,"table",0,1)[0];this.cur=document.getElementById(c.id+"_div");if(!this.obj){this.obj=this.u.findChildren(c,"div",0,1)[0];this.cur=document.getElementById(this.obj.id+"_div");}this.obj.className=this.obj.className.replace(/_mouseout/gi,"_mouseover");this.cur.style.display="block";this.dir=1;}else{this.obj=0;this.dir=-1;}}if(!this.bAnimate){this.time=(new Date).getTime();var d=this.par;var b={to:function(){d.animate.run();}};this.TO=setInterval(b.to,1);this.bAnimate=1;this.targ.style.display="block";this.targ.style.visibility="visible";}};this.run=function(){this.cH+=(this.speed*this.dir)*((new Date).getTime()-this.time);if(this.cH>this.h||this.cH<0){if(this.cH<0){this.cH=0;this.targ.style.visibility="hidden";}else{this.cH=this.h;}clearInterval(this.TO);this.btnClose=this.bAnimate=0;}this.targ.style.height=this.cH+"px";};this.event={run:function(d,f,c){clearTimeout(c.moTO);if(c.btnClose||(d.type=="mouseover"&&c.par.subDir)){return;}if(d.type=="mouseout"){var b={to:function(){c.start();}};c.moTO=setTimeout(b.to,50);}else{if(f==c.par.vars.btnClose){c.start();}else{c.start(d.type,f);}}}};}},fun:{moveIcon:function(b,a){this.icon=b;this.vOffset=a;this.event={run:function(g,h,f){var d=f.icon.style.backgroundPosition.split("px");if(g.type=="mouseover"){d[1]=f.vOffset;}else{d[1]=0;}f.icon.style.backgroundPosition=d.join("px ");var c=1;}};}},inish:td_site.inish};td_site.page.iconExp={vars:{cUrl:0},utils:function(b){for(var a in b){this[a]=b[a];}this.TO=0;this.run=function(e,c,i,f){this.par.con=document.getElementById(c);var g=document.body.insertBefore(document.createElement("div"),document.body.childNodes[0]);g.className=i;var h=new this.site.fun.event(this.par.goLink,g);this.site.utils.addListener(g,["mouseup"],h.run);this.par.table=g.appendChild(this.site.rounder.utils.make("flyOutBox","full"));this.par.table.rows[1].cells[1].valign="middle";this.par.div=g;this.add(this.par.div,["mouseout","mouseover"]);this.add(this.site.utils.getElementsById(e),["mouseover"]);};this.add=function(e,d){if(!e.length){e=[e];}for(var c=0;c<e.length;c++){var f=new this.site.fun.event(this.par.run,e[c]);this.site.utils.addListener(e[c],d,f.run);}};},build:{hide:function(a){this.par=a.par;this.run=function(b,f){var e=this.par.div;e.style.visibility="hidden";e.style.left="-1000px";var c=this.par.site.nav.animate.getPos();if(b<c.l||b>c.r||f<c.t||f>c.b){this.par.site.nav.animate.extEvent("mouseout");}};},getSate:function(a){this.par=a.par;this.isVis=function(){return(this.par.div.style.visibility.toLowerCase()=="visible");};},run:function(a){this.par=a.par;this.event={run:function(m,g,E){var C=E.par.site.utils;var n=E.par.div;var q=E.par.con;var j=E.par.table.rows[1].cells[1];if(m.type=="mouseout"){if(n.style.visibility=="hidden"){return;}var A=m.clientX;var z=m.clientY;var p={to:function(){E.par.hide.run(A,z);}};E.TO=setTimeout(p.to,50);}else{clearTimeout(E.TO);if(g==n){E.par.site.nav.animate.extEvent("mouseover");return;}E.par.vars.cUrl=C.findChildren(g,"a",0)[0].href;j.innerHTML="<CENTER>"+g.innerHTML+"</CENTER>";var r=C.findChildren(n,"img",1)[0];r.style.width="165px";r.style.height="105px";var f=C.getPos(g);var B=n.offsetWidth;var k=n.offsetHeight;var i=(f.l+(g.offsetWidth/2))-(B/2);var D=(f.t+(g.offsetHeight/2))-(k/2);var b=C.getPos(q);if(i+B>b.r){i=b.r-B;}if(i<b.l){i=b.l;}if(D+k>b.b){D=b.b-k;}if(D<b.t){D=b.t;}n.style.left=i+"px";n.style.top=D+"px";n.style.visibility="visible";E.par.site.nav.animate.extEvent(m.type);}}};},goLink:function(a){this.par=a.par;this.event={run:function(c,d,b){document.location=b.par.vars.cUrl;}};}},inish:td_site.inish};td_site.inish(td_site,"td_site",0);td_site.page.nav.utils.run();}(function(){var f=YAHOO.util.Dom;var d=YAHOO.util.Event;var e=YAHOO.util.CustomEvent;var h=YAHOO.util.Anim;var j=YAHOO.widget.MenuBar;var b=YAHOO.widget.Overlay;var i=getPackageForName("com.forddirect.ng.util");var k=getPackageForName("com.forddirect.ng.widgets");var a=0.2;var g=400;k.GlobalNav=function(n){this._mouseOver=false;this.nodeRoot=f.get(n.root);this.eyebrow=f.get("eyebrow");this.locateadealerid=i.getElementByClassName("locate-dealer-link","a",this.eyebrow);var l=f.get("gnav-search-endeca");if(l){var m=new k.SiteSearchInput(l,{autocomplete:true,searchType:"search"});}};var c=k.GlobalNav.prototype;c.onContextLoaded=function(){_widgets.context.UserContext.subscribe("zipcodeChange",this.updateLocateDealerlink,this,true);this.updateLocateDealerlink();};c.updateLocateDealerlink=function(){var m=_widgets.context.UserContext.get("zipcode");if(m){var l=this.locateadealerid.getAttribute("rel");l+="?zip="+m;this.locateadealerid.href=l;}};_instances.bsLoader.initCompleteEvent.subscribe(function(){var l={root:"menus",menu:"toolbar",overlay:"globalnav-content"};_instances.globalNav=new k.GlobalNav(l);});})();evt_future=function(){this.TO=0;this.NH=0;this.show=function(a,b){if(b){v="hidden";this.NH=0;}else{v="visible";this.NH=this.getNH();}document.getElementById(a).style.visibility=v;};this.getNH=function(){return parseInt(document.getElementById("globalnav-content").style.height);};this.mouse=function(a,b){clearTimeout(this.TO);if(this.NH!=this.getNH()){this.show(a.id,1);}else{if(b.type=="mouseout"){this.TO=setTimeout("evt_future.show('"+a.id+"', 1)",50);}}};};evt_future=new evt_future();
/* ***** Loading file => http://wwwmg.fordvehicles.com/ngtemplates/ngassets/com/forddirect/ng/opinionlab/opinionlab-min.js */
(function(){var c=YAHOO.util.Dom;var a=YAHOO.util.Event;var d=YAHOO.Bubbling;var b=getPackageForName("com.forddirect.ng.opinionlab");var e=getPackageForName("com.forddirect.ng.util");b.OpinionLab=function(){this.init();};b.OpinionLab.prototype.init=function(){try{this.initEngine();var f="site-feedback";d.addDefaultAction(f,e.Actions.newHandler(this.launchSurvey,this));}catch(g){}};b.OpinionLab.prototype.initEngine=function(){try{new_domain="www.fordvehiclesN.com";_domain=_ht.replace("https%3A//","").replace("http%3A//","");_sp="%3A\\/\\/"+_domain.substr(0,_domain.indexOf("/"));_rp="%3A//"+new_domain;}catch(f){log.error(f);}};b.OpinionLab.prototype.launchSurvey=function(){try{_fPe();custom_var=s.pageName;O_LC();}catch(f){log.error(f);}};YAHOO.util.Event.onDOMReady(function(){_instances.opinionLab=new b.OpinionLab();});})();